Issue
I have this code
stdin.println("for /r %i in (cdm.jar) do xcopy /Y \"%i\"\ \"\%\userprofile\%\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\"");
but it causes an error: illegal escape character
Solution
Fixed code:
stdin.println("for /r %i in (cdm.jar) do xcopy /Y \"%i\" \"%userprofile%\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\"");
As my comment stated: dont escape the whitespace, the "u" and the "%".
Answered By - luk2302
Answer Checked By - Pedro (JavaFixing Volunteer)