Board index » cppbuilder » Turbo C, help launching external .exe
Tim Reinarts
![]() CBuilder Developer |
Tim Reinarts
![]() CBuilder Developer |
Turbo C, help launching external .exe2006-10-06 10:53:41 PM cppbuilder85 I have been playing with Turbo C for many years, and am far from experienced. I would like an example of how to call an external .exe or .bat file. I am using version 3.0 (I know, it's old). Thanks |
Ed Mulroy
![]() CBuilder Developer |
2006-10-07 01:24:00 AM
Re:Turbo C, help launching external .exe
You must have Turbo C++ as there never was a Turbo C version 3.0.
You can use the function 'system' to run an executable *.exe or *.com file or interpret a *.bat file. *.exe and *.com files can also be executed with any of the spawn* or exec* sets of functions. A batch file cannot be run by them because it is not an executable. However you can get them to interpret a batch file if you run the command interpreter, command.com, with the batch file name as the command line argument. If what you have is Turbo C++ for Windows then you can also execute a *.exe or *.com file with the Windows function WinExec. . Ed QuoteTim Reinarts wrote in message |