Discussion Locked

Automatic command on reboot

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

I need to make a single line command to run automatically when one of my Windows NT servers reboot. It doesn't work in the autoexec.nt file. I need it to run without having someone log onto the server. The command is a route add command. Is there any way to have NT 4.0 server run a command or script file/batch file automatically on boot/reboot? Thanks in advance.

Woody

9 replies

by ann777

Yes, you can do this with any automatic login utility. This destroyies any local machine security (and essentially network security), but if the server is physically secure... then it's probably okay to use an autologin program.

Then place your script or batch file in your startup folder and every reboot, restarts the application.

by ann777

The "route add" command should work in the autoexec.bat file.... try that before anything else. I believe autoexec.nt is a backup copy of the autoexec.bat and if you change .nt you are not changing the file that is being used. Try the route add in autoexec.bat.... reboot and see if the route is in the table.

by woody h

I can not comprimise network or server security by installing an automatic login utility. Is there another way to do this? Thanks.

Woody

by cactus pete

for more information, just type "route" alone in the command prompt. Make sure your window buffer goes back far enough to see all that scrolls by.

by jackofalltech

I haven't had time to try this but it should work.

Download the free AutoIt package from www.hiddensoft.com. Create a one-line script "Run, Route.exe ....." and compile it to an .EXE

There is at least one freeware program out there that makesit possible to run any EXE as a service. Do some research (Google?) to find it, get it and use it.

Ralph

by woody h

I appoligize for the time frame rating this question. I can't add services to this server. There must be a way to add something to the registry. Or add to the s/u events in windows NT.

This discussion is closed to new replies.