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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is my script already running?

Status
Not open for further replies.

PSmithy

MIS
Jan 12, 2003
1
GB
A script I've created takes a while to run various checks before it displays the first user response screen. Is there a way of adding a command at the begining so the script can check if it's already running?

For example an impatient user double clicks the icon and nothing appears onscreen straight away so they double click it again - at this point I'd like it to show an "Already Running" error message.

Thanks for any help
 
At the beginning of your script,
use

Wscript.Echo <your message>

but you should use cscript host (cscript //h:cscript).
It will show the message on command prompt.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top