Consultor Eletrônico



Kbase 20509: How to Run Commands During Boot Up Time on Windows NT 4.0
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/16/2008
Status: Unverified

GOAL:

How to configure your Windows NT system so that certain commands run at boot up.

FACT(s) (Environment):

Windows NT 4.0

FIX:

With the utility AUTOEXNT follow these steps to set up the utility:

1) From the AUTOEXNT.ZIP file, extract the files autoexnt.exe, autoexnt.bat and servmess.dll to %systemroot%/system32.

2) Also extract the file instsrv.exe to any directory (a temp directory does fine).

3) At the command prompt, enter "instsrv install" (This creates a new service called AutoExNT).

4) Edit the file %systemroot%/system32/autoexnt.bat and put in any commands you want to be run when the machine boots (such as a CHKDSK etc.).

When the system boots in the future, the AutoExNT service checks for the existence of the file autoexnt.bat and executes any commands in it.

A version of this is also shipped with the resource kit, however it is better to use the downloadable version.