March 4, 200521 yr 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
March 5, 200521 yr Author 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.
March 5, 200521 yr There is no shutdown.exe in windows in native... You have to copy shutdown.exe in %windir%\system32
March 5, 200521 yr You should be using the "/R" switch instead of the "/F" switch. "/R" implies "/F". "/F" only fixes and does not recover data.
Create an account or sign in to comment