www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - Executing a batch file from with a c++ program

↑ ↓ ← "jim" <ploppy000 yahoo.com> writes:
Does anyone know how to kick off a batch file from within a C++ program ??
Nov 21 2002
↑ ↓ Jan Knepper <jan smartsoft.us> writes:
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 ??

Nov 21 2002
→ "jim" <ploppy000 yahoo.com> writes:
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

 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



Nov 21 2002
→ "Matthew Wilson" <dmd synesis.com.au> writes:
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

 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



Nov 21 2002