Menu
  • HOME
  • TAGS

Java Invalid escape sequences

java,command,exec,command-window

r.exec("cmd /c D:\Doc and Settings\USER\Bureau\Apps-Two.loc.nal"); // Compiler not able to understand this backslash. you should use "\\" wherever you want to use actual backslash (\) change your folder path like this r.exec("cmd /c D:\\oc and Settings\\USER\\Bureau\\Apps-Two.loc.nal"); See the attached table for your reference ...