Answer the question
In order to leave comments, you need to log in
How to execute bat file from Javascript?
How to execute bat file from Javascript?
Found this solution
WshShell = new ActiveXObject("WScript.Shell");
WshShell.Run("upload.bat");
Answer the question
In order to leave comments, you need to log in
Forget, no modern browser will give JS access to the user's machine. Except through vulnerabilities in the system :)
It won't work from a browser. From node.js -- https://docs.nodejs.org/dist/latest-v8.x/docs/api/...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question