Discussion Locked

start batch file as service on Win2K ser

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,
How do I make a batch file to run as service after the server restarts.

The batch file I have sets up java environment & calls few other batch files & later one exe.
Problem is that I need to make this run automatically if adminsitrator does not login to the server as a Win2K service after the server restarts.
I know .exe files can be made to run as service thru srvany.exe in NT, how to make a batch file run as service.
Also can anyone email me srvany.exe other related exe files for Win2K as I dont have Resource Kit. Any help is welcome.
akash
akashdeep_b@yahoo.com

5 replies

by fedya

Consider starting the batch using Task Scheduler with "At System Startup".

Regards,
feodor trubetskoy

by ciscofred

Yes use the Scheduled Tasks which is located in the control panel. I have a batch file that will run everytime we reboot the server.

This discussion is closed to new replies.