Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running a .bat file using an HTML button

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?

like image 317
Kim Avatar asked Jul 25 '26 20:07

Kim


1 Answers

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

like image 140
NIKHIL NEDIYODATH Avatar answered Jul 28 '26 13:07

NIKHIL NEDIYODATH



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!