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.
This is a discussion on Equivalent of BASIC's run? within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Is there an equivalent of the run statement in BASIC? It's a statement that will run another program. Will it ...
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");
?
![]()
Gays can't love like real people
entropysink.com -- because arses weren't designed for running websites.
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