HoustonGSC
IS-IT--Management
I have a filewatcher VBscript that I want to set up as a service. I have found where you can use SERVANY.EXE to do this.
Current process: The filewatcher script reads a .ini file to determine which folders/files to process. There is also a flag in the .ini file that tells the filewatcher to either process or stop processing (shutdown).
My question is: If I convert this script to a service, what happens when someone requests the service to stop? Will the script be abruptly stopped? Is there something that I have to put in my code to allow the service mechanism to communicate with the script or can the stop request reset the flag to the stop processing value?
Current process: The filewatcher script reads a .ini file to determine which folders/files to process. There is also a flag in the .ini file that tells the filewatcher to either process or stop processing (shutdown).
My question is: If I convert this script to a service, what happens when someone requests the service to stop? Will the script be abruptly stopped? Is there something that I have to put in my code to allow the service mechanism to communicate with the script or can the stop request reset the flag to the stop processing value?