Re: Preventing multiple instances of a Windows app - still a problem

2011-12-07 Thread Graham Samuel
Just to say that with a bit of work off-list, this issue was nailed for me by Mike Bonner (and thanks also to others who give info and suggestions). Basically in Windows XP Home (and I hope in Windows 7 etc), tskill will kill a task, and qprocess will give a list of running tasks (thanks, Phil D

Re: Preventing multiple instances of a Windows app - still a problem

2011-12-04 Thread Phil Davis
Graham, On XP try the 'qprocess' command. It should be available and provides similar info. put shell("qprocess") Best - Phil Davis On 12/4/11 3:24 PM, Graham Samuel wrote: Thanks to all those who replied to my query - I appreciate both the speed and the enthusiasm of the replies! So far I

Re: Preventing multiple instances of a Windows app - still a problem

2011-12-04 Thread Mike Bonner
If running from within livecode (do "" as) all you get back if there is an execution error is execution error. Not sure why it doesn't pop up a real error dialog when running from a file. The kill command on windows is taskkill. Its used in the other script you sent to me, and vbscript just shells

Re: Preventing multiple instances of a Windows app - still a problem

2011-12-04 Thread Mark Schonewille
Graham, What is the execution error exactly?! Please, always include the exact text of an error, whenever you write the word 'error'. -- Kind regards, Mark Schonewille Economy-x-Talk Http://economy-x-talk.com Share the clipboard of your computer over a local network with Clipboard Link http:/

Re: Preventing multiple instances of a Windows app - still a problem

2011-12-04 Thread Graham Samuel
Thanks to all those who replied to my query - I appreciate both the speed and the enthusiasm of the replies! So far I have not succeeded, but I am more than ready to believe that it's finger-trouble on my part. To take Mark Schonewille's suggestions first: 1. As I stated in my original post, I

Re: Preventing multiple instances of a Windows app - still a problem

2011-12-04 Thread Mike Bonner
wow. I can tell how long i've been away from a windows command line. Didn't know about tasklist. Thanks! On Sun, Dec 4, 2011 at 9:20 AM, Mark Schonewille < m.schonewi...@economy-x-talk.com> wrote: > I see. I have been using: > > function programs > if the platform is "MacOS" then -- only OS

Re: Preventing multiple instances of a Windows app - still a problem

2011-12-04 Thread Mark Schonewille
I see. I have been using: function programs if the platform is "MacOS" then -- only OSX! put shell("ps -xcw") into myList put offset("COMMAND",myList) into myColPos repeat for each line myLine in myList put char myColPos to -1 of myLine & cr after

Re: Preventing multiple instances of a Windows app - still a problem

2011-12-04 Thread Mike Bonner
Not sure the app in question is an lc app. Doesn't it only apply if thats the case? If it is an lc app, then yeah relaunch is perfect. On Sun, Dec 4, 2011 at 8:19 AM, Mark Schonewille < m.schonewi...@economy-x-talk.com> wrote: > What's wrong with relaunch? > > -- > Kind regards, > > Mark Schone

Re: Preventing multiple instances of a Windows app - still a problem

2011-12-04 Thread Mark Schonewille
What's wrong with relaunch? -- Kind regards, Mark Schonewille Economy-x-Talk Http://economy-x-talk.com Share the clipboard of your computer over a local network with Clipboard Link http://clipboardlink.economy-x-talk.com Op 4 dec. 2011 om 16:01 heeft Mike Bonner het volgende geschreven: >

Re: Preventing multiple instances of a Windows app - still a problem

2011-12-04 Thread Mike Bonner
Since you just want to kill the process, and not necessarily bring it to the front or anything like that, I think this is great advice. Just kill it through shell, shouldn't matter if its actually running or not. However, on the vbscript side I found a MUCH easier way to see if the process is runn

Re: Preventing multiple instances of a Windows app - still a problem

2011-12-04 Thread Mark Schonewille
Hi Graham, Looks like you need to read about the relaunch message in the docs. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Become our partner in sales http://q

Re: Preventing multiple instances of a Windows app - still a problem

2011-12-04 Thread Thierry Douez
Hi Graham, 2011/12/4 Graham Samuel > > Last May I got lots of good advice from this list (specially from Mike > Bonner) about how to deal with this problem, and it came down to running a > little VB script that ran through the open processes on the machine and > killed any duplicate of the progr