I wish to use the method with the following signature:
exec(String command, String[] envp, File dir)
Suppose my program is called "myprog.exe" and it is located at "C:\Program Files\My Software". What is the correct syntax for using Runtime.exec? I keep getting an error message "The system cannot find the file specified". To clarify I wish to start myprog.exe from the directory "C:\Program Files\My Software" and not from where the java program is running