Terminate or stop VBScript in between using BATCH Command

Author Message
vijkid143

  • Total Posts : 6
  • Scores: 0
  • Reward points : 0
  • Joined: 9/7/2009
  • Status: offline
Terminate or stop VBScript in between using BATCH Command Wednesday, September 23, 2009 5:59 AM (permalink)
0
Hi All

You can stop the VBScript at any time when you want to terminate the program in between

Steps
1) Open Notepad
2) type the below line
TASKKILL /F /FI "USERNAME eq Vijay" /IM wscript.exe

3) save the file as "TASKKILL.bat"
4) Make a shortcut of it on your Shortcut toolbar
5) Now run any VBScript and when the VBSCript is in runnng, Then Click in the TASKKILL.bat from shorcut which will stop the program then and there. T

Note: Even though you can kill the wscript.exe from task manager to do the same job but there are some instances when your VBScript is running using Sendkeys Commands where TASKKILL.bat is useful to control the Script more easily whenver you want to stop it

 
#1

    Online Bookmarks Sharing: Share/Bookmark

    Jump to:

    Current active users

    There are 0 members and 1 guests.

    Icon Legend and Permission

    • New Messages
    • No New Messages
    • Hot Topic w/ New Messages
    • Hot Topic w/o New Messages
    • Locked w/ New Messages
    • Locked w/o New Messages
    • Read Message
    • Post New Thread
    • Reply to message
    • Post New Poll
    • Submit Vote
    • Post reward post
    • Delete my own posts
    • Delete my own threads
    • Rate post

    2000-2012 ASPPlayground.NET Forum Version 3.9