Groups > Borland > Borland Turbo C plus plus > Re: Turbo C, help launching external .exe




Turbo C, help launching external .exe

Turbo C, help launching external .exe
Fri, 6 Oct 2006 09:53:41 -0500
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 

Post Reply
Re: Turbo C, help launching external .exe
Fri, 6 Oct 2006 13:24:00 -0400
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

> Tim Reinarts wrote in message
> news:45266df3@newsgroups.borland.com...
>
>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).

Post Reply
about | contact