UNIX Socket FAQ

A forum for questions and answers about network programming on Linux and all other Unix-like systems

You are not logged in.

  • Index
  • » C++
  • » c++ : Use of System() to execute .exe with parameters

#1 2008-12-02 02:21 PM

eusta
Member
Registered: 2006-12-13
Posts: 33

Re: c++ : Use of System() to execute .exe with parameters

Hello,

I 've trie to execute a a program with parameters unsuccessfully and i take the above message :

"The system cannot find the path specified."

I used a variaton of the above command :
system("\"C:\\xxx\\xxx\\xxx.exe -xxx -xxx xxx.xxx xxx.xxx xxx.xxx\"");

Thanks in advance

Offline

#2 2008-12-02 09:55 PM

RobSeace
Administrator
From: Boston, MA
Registered: 2002-06-12
Posts: 3,839
Website

Re: c++ : Use of System() to execute .exe with parameters

We don't generally do Windoze issues around here...  However, try removing the
extra escaped double-quotes inside your string and see how that behaves...  Ie:

system("C:\\xxx\\xxx\\xxx.exe -xxx -xxx xxx.xxx xxx.xxx xxx.xxx");

Offline

  • Index
  • » C++
  • » c++ : Use of System() to execute .exe with parameters

Board footer

Powered by FluxBB