I try it like this

system("start %windir%\system32\calc.exe"); 

gives an error and does not open what to do?

  • 2
    @extazys, and warnings (or do you not have them?) about \\ s and \\ c not embarrassed you? - avp

2 answers 2

For a start, recall the shielding of characters. This is when \ need to write as \\

  • in most cases, it recognizes / instead of \ i.e.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. - FORTRAN

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.