I have .bat file with following content for example:
mkdir testDir
Now I put it to folder C:\temp Then I want to run it using java so I do following:
Runtime.getRuntime().exec("cmd /c start C:\\temp\\test.bat");
I expect that folder will be created in C:\temp like when I execute this file manually, but folder is being created in my workspace which is wrong. How can I fix it?