Im currently coding a program, but i need to make it execute a vbs file. TempDir.vbs. However, the directory to this file contains spaces.
Unfortunally, all other topics dont work when the directory contains spaces.
In my case:
C:\\Users\\"the user"\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup
the code im currently using is:
Runtime.getRuntime().exec("wscript.exe " + "\"\"\"" + path + "\"\"\"" + "TempDir.vbs");
So, how can i execute the file TempDir.vbs.