using shell() to kill app on XP Home?
Phil Davis
davis.phil at comcast.net
Fri May 27 17:14:16 EDT 2005
Thanks to both of you.
Lynch, Jonathan wrote:
> Have you looked at Revolution's Kill command?
To use Rev's 'kill' in this situation, I'll need to get the process name
from outside Rev (and then I'm not sure if it'll be what Rev is looking
for, but that's a different issue). That leads me back to shell(), since
my helper app doesn't show up in 'the openProcesses'. Still, if I can
find a way to get the PID at app start time and preserve it until needed
for 'kill', that would be preferable to everything else. I'll keep
working on it.
Xavier wrote:
> try pskill from sysinternals.com.
>
> Include it in your package (w2k, wxp, w2k3 compatible).
> They have a separate version for w9x.
>
> It in their psTools for windows.
> Alternative are in the NTResKit and W98Reskit (tskill i think)
Wow - those guys have some great little tools! Thanks for the tip. Using
their tools will be my fallback position.
> -----Original Message-----
>
> At startup, my Rev-based app uses 'shell()' to start a faceless
> (non-GUI) helper app which runs in the background the entire time my Rev
>
> app is running.
>
> When the Rev-based app quits, I want to kill the helper app. On XP Pro,
> I see that I can use shell commands to do what I want:
>
> - 'tasklist' lists all processes so I can get the processID
> of my helper app.
>
> - 'taskkill' lets me kill it.
>
> On XP Home, however, these commands don't seem to be available. Does
> anyone know of any other commands I can use to kill my helper app?
More information about the use-livecode
mailing list