I try it like this
system("start %windir%\system32\calc.exe");
gives an error and does not open what to do?
For a start, recall the shielding of characters. This is when \ need to write as \\
In most cases, recognize / instead of \ i.
system("start %windir%/system32/calc.exe");
even though it is a Unix character separation path, but most of the functions in C work correctly with it and on the wine platforms.
Source: https://ru.stackoverflow.com/questions/162872/
All Articles