Setting a .BAT file to 'Close on Exit'? API call?
I'm creating batch file on the fly, executing it in hidden mode with the shell
command, and then closing the file. The problem is how to close the .BAT
file after it's completed it's task. It appears the easiest way would be
to 'turn on' the close on exit option of a .BAT file after I've created the
file in my code. Does anyone know how to do this?
The only other option would be to use the TerminateProcess api call which
I've been having a heck of a time getting to work (Yes I've gone back through
what Bryan and Karl have posted - even referenced the 'API GUIDE' program).
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center