Nakatomi2010 Posted September 29, 2005 Posted September 29, 2005 Reboot the system when it's done installing everything... I have it install the XPize pack, but once it's install it wont look proper until it does a restart, and I'd rather it restart itself automatically...And on top of that, how would I tell it to delete a couple of directories once it's rebooted? Reason it has to be after the reboot is because the directory WPI runs out of is on the drive, and I figure it wont delete the directory it's in because it's in use, so after the reboot, while it's booting, I could have Windows delete it's directory...
Thauzar Posted September 29, 2005 Posted September 29, 2005 you should read a bit about runonceex... and to delete files and folders, there is nothing easier than a simple batch file.
Nakatomi2010 Posted September 29, 2005 Author Posted September 29, 2005 I know about RunOnceEx, I use WPI because it allows me to do some things I can't with ROE, even though it creates a script for ROE to use in the first place, and I know I can write a batch file, I just don't know how to have it called up on the next boot, and only have it called up that one boot.
Danny-B- Posted September 30, 2005 Posted September 30, 2005 Open WPI.cmd with notepad edit the last few lines fromREM Rebooting the sytem to finalize the installation process.REM shutdown.exe -r -f -t 30 -c "To finish installations WPI will now reboot in 30 sec..."exit:endto REM Enter some cleanup code here or call another cleanup fileREM Rebooting the sytem to finalize the installation process.shutdown.exe -r -f -t 30 -c "To finish installations WPI will now reboot in 30 sec..."exit:endBasicly the word "REM" stops theat line from being executed as it goes line by line.to remove a directory RD /S /Q %systemdrive%\SOME DIRECTORY HEREto remove a file its DEL "%systemroot%\*.bmp" for example
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