yronnen Posted April 10, 2004 Share Posted April 10, 2004 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 More sharing options...
Aaron Posted April 10, 2004 Share Posted April 10, 2004 Works fine here, although it tried to shutdown a lot earlier than the 30 seconds it mentioned in the box.This won't work on Win2k if you're trying to use it on there. Link to comment Share on other sites More sharing options...
Shark007 Posted April 10, 2004 Share Posted April 10, 2004 I may be wrong, i haven't researched this buti think you need to include a 'time period'shutdown.exe -r -f -t 30where the '30' represents 30 seconds.Shark007 Link to comment Share on other sites More sharing options...
WwTIPPYwW Posted April 10, 2004 Share Posted April 10, 2004 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 MinuteECHO 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 FilesECHO Please wait...RD /S /Q %systemdrive%\ÝRD /S /Q %systemdrive%\Program Files\Online ServicesRD /S /Q %systemdrive%\DriversRD /S /Q %systemdrive%\InstallECHO.ECHO.ECHO Installation CompleteEXIT Link to comment Share on other sites More sharing options...
yronnen Posted April 11, 2004 Author Share Posted April 11, 2004 WwTIPPYwW:Found it myself just before reading you answer But that's the reason... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now