Function to run a BAT?

Status
Not open for further replies.

jmmv

Ars Scholae Palatinae
970
Hi all

I've a simple program that outputs a script to a bat file. When finished, the program runs it with system ("command.bat"), but this is not useful to me.

I would like a function that runs the command.bat file in a ms-dos window, but without closing the main windows program. Which ones can I use have? Will the function block the program? I would prefer it to do the blocking or have some kind of function to wait until the bat finishes to do some action.

Thanks!
 
Status
Not open for further replies.