Jan 13, 2002 #1 moe44 IS-IT--Management Jan 13, 2002 1 US I use WSHShell.Run to start notepad.exe, calc.exe and write.exe. How do I set calc.exe and write.exe to close when notepad.exe ends. Thanks
I use WSHShell.Run to start notepad.exe, calc.exe and write.exe. How do I set calc.exe and write.exe to close when notepad.exe ends. Thanks
Jan 13, 2002 1 #2 dilettante MIS Apr 13, 2001 4,475 US This sounds ugly, but it is all I can think of. First get the most recent version of the scripting software you can. 5.6 now, I think? Then get the most recent Help file so you can look into the details of the Methods needed. Use the Run method to start calc and write, without waiting. The use Run to start notepad in "wait on return" mode (use the third parameter to Run: True to wait). When notepad completes, use AppActivate and SendKeys to shut the other programs down. Told you it was ugly! Anybody else? Upvote 0 Downvote
This sounds ugly, but it is all I can think of. First get the most recent version of the scripting software you can. 5.6 now, I think? Then get the most recent Help file so you can look into the details of the Methods needed. Use the Run method to start calc and write, without waiting. The use Run to start notepad in "wait on return" mode (use the third parameter to Run: True to wait). When notepad completes, use AppActivate and SendKeys to shut the other programs down. Told you it was ugly! Anybody else?