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 get the process ID in the first place.
Thanks in advance!
But I can't figure out how to get the process ID in the first place.
Thanks in advance!