'How to run .bat file or .exe file from browser using html java script / angular/react and it should support in all browser
I have one batch file in my local,I want to run it from browser
For example I have one html page with anchor tag If I click on that link then it should run a batchfile provided in href attribute.
Thanks in advance.
Solution 1:[1]
Web browsers run JavaScript code in a "sandbox", specifically to prevent exactly what you want to do, because it's an enormous security risk.
In short, you shouldn't, and can't do that.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | GreyBeardedGeek |
