Quantcast
Channel: ASPRunner forums
Viewing all articles
Browse latest Browse all 2586

Execute a ms-Dos bat file from events

$
0
0
The goal is simple, just to run a "xxxxx.bat" or "xxxx.exe" by clicking a custom button on the list page.
Have tried several code-tips from google, but still no success.
Any tips why this code want work?

var wshShell = new ActiveXObject("WScript.Shell");
wshShell.Run("D:\\dir\\user.bat");

Viewing all articles
Browse latest Browse all 2586

Latest Images

Trending Articles



Latest Images