Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

runcmd()

Status
Not open for further replies.

w2e3r4

Programmer
Jan 9, 2011
12
0
0
IT
this is for lounch an exe application by a script on html page:
function runcmd() {
File="_a.exe";
WSH=new ActiveXObject("WScript.Shell");
WSH.run(File);
}

it is necessary to support compilation of a form (html page), I need to close the exe app with a button, I know th e code for the button but I can't close the application. Is there a way?
 
You can send a Windows command like "taskkill /f /im _a.exe" but ... are you sure you want this to happen inside a webpage?

Cheers,
Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top