Newbie ShellExecute

  • Thread starter Thread starter Stefano Camaiani
  • Start date Start date
S

Stefano Camaiani

Sorry for this stupid question, but it is my first day with VC++

I'm building a console application.....

And i need to execute another command line tool (file.exe)....

If i use the shellexecute method, then the file.exe start, BUT in a new
window...

With VB.Net or VB 6.0 if i use the Shell function the File.exe start in the
same console window.....

Some suggestion on howto start the File.exe in the same console window?

Per example i should need to start the CMD.exe in my console VC++ project
and get Dir or Copy functions....

Really thanks...
Stefano
 
Stefano Camaiani said:
With VB.Net or VB 6.0 if i use the Shell function the File.exe start in the
same console window.....

Some suggestion on howto start the File.exe in the same console window?

Check the docs for system().

Regards,
Will
 
I really thanks you....It work great! ;)
If someone has the same problem then there is the solution:


system("c:\\YourFile.exe");
 
Back
Top