Is there an equivalent of the run statement in BASIC? It's a statement that will run another program. Will it return to the system afterwards, or will it go back to the program.
Is there an equivalent of the run statement in BASIC? It's a statement that will run another program. Will it return to the system afterwards, or will it go back to the program.
spawnf()
It is in process.h
It can run DOS or Windows programs.
You can also use system() which accepts dos commands. So if you used system, you would do:
system("cd\windows\myprog.exe");
I use both. spawnf() is the more correct way to run EXE's.
don't you mean
system("c:\\windows\\myprog.exe");
?
Thanks - system() sounds like what I was looking for (even better actually), but do I need to double up on the \'s and all the other escape sequences?
> but do I need to double up on the \'s and all the other escape sequences?
Yes