Run command at Shutdown

G

Guest

Guest
Archived from groups: microsoft.public.windowsxp.help_and_support (More info?)

Is there any native way to automatically run a command such as a batch file
at shutdown?

Thanks,

Chris Forzetting
 
G

Guest

Guest
Archived from groups: microsoft.public.windowsxp.help_and_support (More info?)

"Chris Forzetting" <mosslab@mail.djuhsd.org> wrote in message
news:eTIYn3NpFHA.3084@TK2MSFTNGP09.phx.gbl...
> Is there any native way to automatically run a command such as a batch
> file
> at shutdown?
>

If you using XP home, you could create a batch file with a shortcut pointed
to it. Within the batch file, enter your commands, then at the end of the
file you could enter:

shutdown -s -t xx

where xx is the number of second in which the shutdown procedure will
commence. Type "shutdown /?" for more info at the command prompt.

So you use your Shortcut that is pointed to your batch file to start your
Shutdown procedure.

But if your using XP Pro, Wesley's suggestion is your best option.

--
William
 
G

Guest

Guest
Archived from groups: microsoft.public.windowsxp.help_and_support (More info?)

If XP Pro, use Group Policy.

Local Computer Policy\Computer Configuration\Windows Settings\Scripts
(Startup/Shutdown)

Local Computer Policy\User Configuration\Windows Settings\Scripts
(Logon/Logoff)

%windir%\system32\GroupPolicy\Machine\Scripts\Shutdown
C:\WINDOWS\system32\GroupPolicy\Machine\Scripts\Shutdown

%windir%\system32\GroupPolicy\Machine\Scripts\Startup
C:\WINDOWS\system32\GroupPolicy\Machine\Scripts\Startup

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In news:eTIYn3NpFHA.3084@TK2MSFTNGP09.phx.gbl,
Chris Forzetting <mosslab@mail.djuhsd.org> hunted and pecked:
> Is there any native way to automatically run a command such as a batch
> file at shutdown?
>
> Thanks,
>
> Chris Forzetting
 
Thread starter Similar threads Forum Replies Date
P Windows XP 12

Similar threads


ASK THE COMMUNITY

TRENDING THREADS