Thread overview
Executing a batch file from with a c++ program
Nov 21, 2002
jim
Nov 21, 2002
Jan Knepper
Nov 21, 2002
jim
Nov 21, 2002
Matthew Wilson
November 21, 2002
Does anyone know how to kick off a batch file from within a C++ program ??


November 21, 2002
You will have to invoke the command line processor and submit your .bat file
as argument.
Something like:
    system ( "cmd.exe /C file.bat" );
On Windows NT/2K/XP

Jan



jim wrote:

> Does anyone know how to kick off a batch file from within a C++ program ??



November 21, 2002
Thanks...


"Jan Knepper" <jan@smartsoft.us> wrote in message news:3DDCF6F0.C76936BB@smartsoft.us...
> You will have to invoke the command line processor and submit your .bat
file
> as argument.
> Something like:
>     system ( "cmd.exe /C file.bat" );
> On Windows NT/2K/XP
>
> Jan
>
>
>
> jim wrote:
>
> > Does anyone know how to kick off a batch file from within a C++ program
??
>
>
>


November 21, 2002
I'm pretty sure you can use ShellExecute also, if you prefer.

"Jan Knepper" <jan@smartsoft.us> wrote in message news:3DDCF6F0.C76936BB@smartsoft.us...
> You will have to invoke the command line processor and submit your .bat
file
> as argument.
> Something like:
>     system ( "cmd.exe /C file.bat" );
> On Windows NT/2K/XP
>
> Jan
>
>
>
> jim wrote:
>
> > Does anyone know how to kick off a batch file from within a C++ program
??
>
>
>