Say I want to run a program in C:\program files\my folder\program.exe
This has spaces in it so when I try to do:
system("C:\program files\my folder\program.exe");
it cannot find the path. What can I do to fix this?
Say I want to run a program in C:\program files\my folder\program.exe
This has spaces in it so when I try to do:
system("C:\program files\my folder\program.exe");
it cannot find the path. What can I do to fix this?
You gotta escape slashes.
use \\ instead of just \.
Also, relying on LFN is generally bad. reduce the lenght of the directory names, or use XXXXXX~1 notation.
depending of your compiler you might have to use slash (/)
or a double back slash to neutralize the first one (\\)
Regards,
matheo917