![]() |
There has got to be a better way.....
Ok, presently this is the method I use for running an external *.exe from within a vbscript.
:
strComputer = "."Is there a better way to run an external *.exe from within a VBScript? I need to run it, then kill it. I search for a bit but couldn't find anything useable. Thanks in advanced. |
Hi, give this a try.
:
check out this page for additonal parameters you can use with the run method. http://www.devguru.com/Technologies/...shell_Run.html |
oh, and you wanted to kill the process too.
:
basically it queries running processes for the desired one and terminates it. note: I'm not sure if this is being performed on the local machine or on a remote machine, the code above is for local, if you want to kill on remote machine, check the link below. all this code was stolen from here, i take no credit but i did test them personally and they work http://www.computerperformance.co.uk...ocess_stop.htm |
| All times are GMT -5. The time now is 12:41 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC