This is a discussion on "closing an application" within the JavaScript Forum section. This forum, and the thread "closing an application are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
closing an application
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
closing an application
Hi,
I have the following code which will run a .exe application by the press of a button. However i now need to have another button which once pressed, it will close the application. Any ideas? Any help is much appreciated. <script language="JavaScript"> function func_snapshot() { var myshell = new ActiveXObject( "WScript.shell" ); myshell.run( '"C:/Documents and Settings/klp/My Documents/SNAPSHOT PRODUCT IMPORT-EXPORT-CATALOGUE PROGRAM/snapshot.exe"', 1, true ); } </script> <INPUT TYPE="button" NAME="button2" VALUE="SnapShot" ONCLICK="func_snapshot()"></INPUT> |
|
|
|
||||
|
Re: closing an application
download windows NT toolkit
You'll find an application called kill.exe in there that basically terminates an application you pass it. Just execute that file in the same way (kill.exe snapshot.exe)
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
Re: closing an application
thanks for your help, i'll get cracking on it now.
|
|
|||
|
Re: closing an application
thanks for the reply, just a quick question will the NT tool kit work fine on XP?
cheers. |
|
|||
|
Re: closing an application
Hi Rob
i hear that Windows XP has two files called taskkill.exe and tskill.exe, i'm trying to get it to closean application on the click of a button, but dont seem to be getting anywhere, could you help? Kal |
![]() |
| Tags |
| closing, application |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Closing tags in the validator | geyids | Web Page Design | 11 | Jan 14th, 2008 07:00 |
| Trouble closing gaps | Phixon | Web Page Design | 2 | Sep 17th, 2007 14:00 |
| Closing a browser without a popup.. | JustinStudios | JavaScript Forum | 3 | Mar 23rd, 2007 23:31 |
| closing a window. | Hatsu | JavaScript Forum | 11 | Nov 30th, 2003 19:41 |