D
Dan
Guest
Hi,
Is it possible to run a bat file as a service? I created a service with the
SRVANY and INSTSRV tools. I then created a bat file to check for the
existence of a file in a certain folder and if it existed then delete that
file. I then specified the path to the bat file in the new service's binpath.
However when the service runs it doesn't delete the file. I can see the
command prompt open up and close.
When I directly run the bat file it deletes the file. But when the service
runs it doesn't delete the file. I researched but couldn't find any specific
answer.
Thanks in advance
Dan
Is it possible to run a bat file as a service? I created a service with the
SRVANY and INSTSRV tools. I then created a bat file to check for the
existence of a file in a certain folder and if it existed then delete that
file. I then specified the path to the bat file in the new service's binpath.
However when the service runs it doesn't delete the file. I can see the
command prompt open up and close.
When I directly run the bat file it deletes the file. But when the service
runs it doesn't delete the file. I researched but couldn't find any specific
answer.
Thanks in advance
Dan