process - How to double click or single click the BAT file using Java or java script which is available in the specified path -
scenario created bat file , stored in c drive. need write code double click or single click using java.
this tried in java did not work:
try { string path = "cmd /c start c:\\keymanager_stop.bat"; runtime rn = runtime.getruntime(); process pr = rn.exec(path); } catch (exception e) { e.printstacktrace(); }
the batch file contains:
cd c:\test\test.cmd stop
Comments
Post a Comment