How to run an external application

I would like to run an external application, and or give a commmand from within my MS Visual c++ program.

At the moment the command I'd like to issue is "IPCONFIG > stat.dat"
kraphicsAsked:
Who is Participating?
 
jhanceConnect With a Mentor Commented:
You can use the system() function from the C runtime library:

system("IPCONFIG >STAT.DAT");

0
 
nietodCommented:
I think there are more ways to run programs than there are programs to run   : - )

You also might want to consider CreateProcess() or the exec() class of functions  (there are about 10 of them).  Each way has its own merits.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.