How to run an executable with spaces using std::system on Windows
问题 How can an executable with spaces be run using std::system on Windows without using C++11 ? I've tried the seemingly obvious placing quotes around the path with spaces, but in the console window that pops up running the command I get a message that indicates that the full executable path is being split on spaces. For example, I've tried the following: #include <cstdlib> int main() { int no_spaces_forward_rc = std::system("c:/IronPython2.7/ipy -c \"print 'no_spaces_forward'\""); // no_spaces