• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Batch file programming

Alex

Diamond Member
is there a command to open and close other programs?

i would like to write a file that closes 2 programs and another that opens them back up... really i guess i could just have one "toggle" style program... but i'm getting way ahead of myself! 🙂

can anyone possibly get me started i dont know jack about batch files 🙁

thx!
 
Windows batch files?

something like this might work:
REM --- begin ---
REM -- start it
start %1
REM -- not sure, sleep is available by default? in 2003 only?
sleep 10
REM -- close it
tskill %1
REM -- end --

P.S. you would save it to whatever.bat, and run with app name (e.g. whatever.bat notepad.exe)
 
Originally posted by: Haden
Windows batch files?

something like this might work:
REM --- begin ---
REM -- start it
start %1
REM -- not sure, sleep is available by default? in 2003 only?
sleep 10
REM -- close it
tskill %1
REM -- end --

P.S. you would save it to whatever.bat, and run with app name (e.g. whatever.bat notepad.exe)

hmm nice this could definitely work!
i read somewhere that for wxp the SET command worked better, but i'll have to test that....

thanks dude! 🙂
 
You can use kill.exe from the MS Resource Kit (which I'm sure you can find and down load if you Google it). I use it all the time to kill programs from batch files. There's also a TList.exe that lists process IDs.

Joe
 
Originally posted by: Netopia
You can use kill.exe from the MS Resource Kit (which I'm sure you can find and down load if you Google it). I use it all the time to kill programs from batch files. There's also a TList.exe that lists process IDs.

Joe

would there be any difference between using tskill and kill.exe?

-frang 🙂
 
Back
Top