I think it would be "cmd /c start ../../data/run.bat" (unless the data folder is in the system path variables) the / s might be \ s. I don't have a windows machine nearby at the moment so can't test.
Hope this helped
|
In my Launcher I have this code:
I need it to open a run.bat file in c:\data\run.bat , how can I modify this code to do this. Will rep .Code:public static void restart() { closeServices(); System.gc(); try { Runtime.getRuntime().exec("cmd /c start run.bat"); System.exit(0);} // temp usualy 2 } catch (Throwable e) { Logger.handle(e); } }
~ Jango
I think it would be "cmd /c start ../../data/run.bat" (unless the data folder is in the system path variables) the / s might be \ s. I don't have a windows machine nearby at the moment so can't test.
Hope this helped
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |