Re: Asynchronous problem
Tech-Archive recommends: Speed Up your PC by fixing your registry
- From: "Jonathan West" <jwest@xxxxxxxx>
- Date: Sun, 24 Dec 2006 01:48:50 -0000
"David I" <d.instone at gmail dot com> wrote in message
news:458da410_1@xxxxxxxxxxxxxxxxxxxxxx
I am trying to shell a program as so
nResult = shell(" mcrypt.exe", 0)
This works fin but then I want to kill its temp file once it is finished.
As
we all know Shell is asynchronous so I have this untill the user closes
the
program.
while(tasks.exists(""mcrypt.tmp"))
' Delay
wend
Then the kill
Kill("mcrypt.tmp")
Use the ShellAndWait command from here
http://vb.mvps.org/samples/project.asp?id=Shell32
--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
.
Relevant Pages
- SUMMARY: Why does ksh coredump on kill -0 ?
... Thanks to Kris Smith, Roberto Romani, Bob Vickers and Dr Thomas Blinn for their helpful answers. ... it causes the shell to dump core. ... Betreff: Re: Why does ksh coredump on kill -0? ... (Tru64-UNIX-Managers) - Asynchronous problem
... I am trying to shell a program as so ... This works fin but then I want to kill its temp file once it is finished. ... delay is not working properly. ... (microsoft.public.word.vba.general) - Re: Redirecting output from "kill" command?
... that's written to stderr by the parent shell whose child has been killed, ... not by the kill command itself. ... Pid 25165 is the parent shell, pid 25797 is the sleep process which we ... (comp.unix.misc) - Re: bg proccess limit
... > i mean limit the background proccesses amount ... ... i work in a shell ... > providing company but can`t find suitable solution for the BSD ... results of the same grep through tail to find some processes to kill off. ... (freebsd-isp) - Re: External Unix programme - time limit
... checking if the process is still active after the sleep. ... >> kill the right programme...and when using the syntax you ... > You don't need to know the PID, %1 is the first job running in the ... > shell, which should be your ./senkin.e program. ... (comp.soft-sys.matlab) |
|