Sparky1 Posted March 4, 2005 Posted March 4, 2005 I have this batch file that runs on XP to defrag all my drives and then shut down. In XP defrag is recognized in cmd, it's not in win2k. Is there a way of doing it in windows 2000? Perhaps with a script?The XP batch file looks like this; defrag C: /f defrag D: /f defrag E: /f shutdown -S
Sparky1 Posted March 5, 2005 Author Posted March 5, 2005 Ok, I found a script on this site Disk Defragmenter Scripts , all I have to do is figure out how to run shutdown at the end.
Mr.J!M Posted March 5, 2005 Posted March 5, 2005 There is no shutdown.exe in windows in native... You have to copy shutdown.exe in %windir%\system32
Marsden Posted March 5, 2005 Posted March 5, 2005 You should be using the "/R" switch instead of the "/F" switch. "/R" implies "/F". "/F" only fixes and does not recover data.
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