kathleen0220
Programmer
Hi,
I just started working for a financial institution and we currently have a .vbs that is sched by task scheduler. The goal is to change it into a service bevause 1. We need it to run forever and 2. We have a monitoring solution that monitors services..not sched tasks. Anyway. Basically this script maps a drive, and copies certain files to another server and then unmaps.
That I have no problem with. The script works great. Packaged with iexpress it also works. Added it to a service using srvany.exe and it works great. But when u start a service the application only runs once. Here is where my problem lies. I need this app to look for files every 5 minutes to forever. I've seen bad things about looping (which I can't get an infinite loop to work as a service anyway) but I don't know my other options and have been staring at webpages and books for quite a while now.
Anyone have suggestions here?
I just started working for a financial institution and we currently have a .vbs that is sched by task scheduler. The goal is to change it into a service bevause 1. We need it to run forever and 2. We have a monitoring solution that monitors services..not sched tasks. Anyway. Basically this script maps a drive, and copies certain files to another server and then unmaps.
That I have no problem with. The script works great. Packaged with iexpress it also works. Added it to a service using srvany.exe and it works great. But when u start a service the application only runs once. Here is where my problem lies. I need this app to look for files every 5 minutes to forever. I've seen bad things about looping (which I can't get an infinite loop to work as a service anyway) but I don't know my other options and have been staring at webpages and books for quite a while now.
Anyone have suggestions here?