You can try with a HTA file like this : Run Exe or Batch files with Javascript and HTA
Javascript_Execute.hta
<html>
<head>
<title>Run Exe or Batch files with Javascript and HTA</title>
<HTA:APPLICATION
APPLICATIONNAME="Run Exe or Batch files with Javascript and HTA"
ID="MyHTMLapplication"
VERSION="1.0"/>
</head>
<script language="Javascript">
function RunMe(){
var shell = new ActiveXObject("WScript.Shell");
var path = '"file:\\\\123.hello.net\\FileShares\\Logon\\SAPfileConfig.bat"';
shell.run(path,1,false);
}
</script>
<input style="width: 170px; height:23px; color: white; background-color: #203040;
font-family:Book Antiqua;" type="button" Value="Execute Batch File" onClick="RunMe();"
</html>
Or you can Run Exe or Batch files with Vbscript and HTA :
Vbscript_Execute.hta
<html>
<head>
<title>Run Exe or Batch files with Vbscript and HTA</title>
<HTA:APPLICATION
APPLICATIONNAME="Run Exe or Batch files with Vbscript and HTA"
ID="MyHTMLapplication"
VERSION="1.0"/>
</head>
<script language="Vbscript">
Function RunMe()
Dim Shell,path
Set shell = CreateObject("WScript.Shell")
path = "file:\\123.hello.net\FileShares\Logon\SAPfileConfig.bat"
shell.run path,1,false
End Function
</script>
<input style="width: 170px; height:23px; color: white; background-color: #203040;
font-family:Book Antiqua;" type="button" Value="Execute Batch File" onClick="RunMe()"
</html>