closing an application

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.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Dec 8th, 2005, 15:51
kal kal is offline
Junior Member
Join Date: Dec 2005
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
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>
Reply With Quote

  #2 (permalink)  
Old Dec 8th, 2005, 15:59
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,951
Blog Entries: 7
Thanks: 7
Thanked 3 Times in 3 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
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
Reply With Quote
  #3 (permalink)  
Old Dec 12th, 2005, 09:32
kal kal is offline
Junior Member
Join Date: Dec 2005
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Re: closing an application

thanks for your help, i'll get cracking on it now.
Reply With Quote
  #4 (permalink)  
Old Dec 12th, 2005, 09:47
kal kal is offline
Junior Member
Join Date: Dec 2005
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Re: closing an application

thanks for the reply, just a quick question will the NT tool kit work fine on XP?

cheers.
Reply With Quote
  #5 (permalink)  
Old Dec 13th, 2005, 13:20
kal kal is offline
Junior Member
Join Date: Dec 2005
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
Reply

Tags
closing, application

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 10:36.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43