Thanks for the suggestion! Unfortunately, it won't do exactly what I need. I need to allow other .vbs scripts to run. I just need to prevent multiple instances of this particular script from running.
I'd like to make sure there's only one copy of my VB script running, and if another one starts, kill the previous one. I thought I can could do that by writing the script's process ID to a file when the script starts, and removing the file when the script exits.
But I can't figure out how to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.