Jump to content

shutdown.exe not working...


Recommended Posts

Hi.

I use a batch file to install all the applications I need after winxp installation.

However, the shutdown.exe does not work. I've placed it at the end of the batch file after removing the installation files from the c: drive.

I use the following switches: shutdown.exe -r -f.

What am I doing worng?

Thx.

Link to comment
Share on other sites


make sure that you start shutdown BEFORE you clean out the install folders. It isn't working because the file is deleted by the cleaning step before it gets to the next line, to shutdown.

the clean of the install folders has to be LAST.

ECHO.
ECHO Automatically Reboot the Computer in One Minute
ECHO Please wait...
%systemdrive%\Windows\System32\shutdown.exe -r -t 60 -f -c "Windows XP will reboot in one minute to finalize the installation process."

ECHO.
ECHO Deleting Temp Installation Files
ECHO Please wait...
RD /S /Q %systemdrive%\Ý
RD /S /Q %systemdrive%\Program Files\Online Services
RD /S /Q %systemdrive%\Drivers
RD /S /Q %systemdrive%\Install

ECHO.
ECHO.
ECHO Installation Complete

EXIT

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...