I'm attempting to create a button that opens and executes a batch file so that it easier for everyone to access.
<input type="button" value="Test" onclick="window.open('bat:///\\123.hello.net\FileShares\ Logon\SAPfileConfig.bat')" />
Whenever I execute on IE, it says that file cannot be found.
What could I be doing wrong?
You will not be able to execute a bat file using your web page. You may able to make it download automatically, but it will not be executed automatically for some security issue
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With