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

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -