Guest User

Untitled

a guest
Aug 19th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. Not able to run a batch file from a java program
  2. runtime.getruntime().exec("cmd /c C:\test.bat"); //Working
  3.  
  4. runtime.getruntime().exec("cmd /c C:\Program Files\test.bat"); //Not Working
  5.  
  6. runtime.getruntime().exec("cmd /c "C:\Program Files\test.bat"");
Add Comment
Please, Sign In to add comment