Thread overview | ||||||
---|---|---|---|---|---|---|
|
November 21, 2002 Executing a batch file from with a c++ program | ||||
---|---|---|---|---|
| ||||
Does anyone know how to kick off a batch file from within a C++ program ?? |
November 21, 2002 Re: Executing a batch file from with a c++ program | ||||
---|---|---|---|---|
| ||||
Posted in reply to jim | 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 Re: Executing a batch file from with a c++ program | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jan Knepper | 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 Re: Executing a batch file from with a c++ program | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jan Knepper | 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 ?? > > > |
Copyright © 1999-2021 by the D Language Foundation