.bat question.

depends on the program id imagine. I know there are some bat files our host uses and other host id imagine that are used to start/stop/restart programs in a program called firedaemon. If its a net service, I think the command,

net quit "program, or program.exe"
exit

might work ;)
 
You need the XP Resource Kit. Then you have commandline access to most everything. To terminate a process you'd use KILL (eg c:\> kill process_id/window_title/task_name).
 
To answer my own question...
TASKKILL(for xpPro)
tskill(for xpHome)
Terminal services must be enabled for those to function though.
 
You can pass the /wait argument to the start command to pause the bat file at that place I think... Then you could just put the close commands after that.
 
Back
Top