Unsolved

This post is more than 5 years old

6 Posts

6241

July 11th, 2006 01:00

Using Disk Defrag in Windows XP Media Center Edition?

In the Windows 9x OS's, when you went to defrag it said you needed to defrag when you didn't and should have when it said you didn't need to (according to what many users where saying). In other words, it didn't do a good job of analyzing the drive.
 
Does Windows XP defrag analyze this pretty accurately?

6 Posts

July 11th, 2006 02:00

Thanks!

Great info - I do appreciate :robothappy:

2 Intern

 • 

12.7K Posts

July 11th, 2006 02:00

Yes it is pretty accurate about advising you to defrag or not. NTFS is much more tolerant of fragmentation than FAT 32,16..    here is a way you can run defrag as an unattended task:

 

Windows XP includes a command-line defragger that works perfectly with the Task Scheduler. You'll need to create the task yourself, though, because there isn't a Maintenance Wizard in WinXP. Just go to Control Panel, Scheduled Tasks, and add a scheduled task.Choose "command prompt" from the list. Check the box for "Open advanced properties for this task when I click Finish".
 On the Run line use the following command:
 
c:\Windows\system32\cmd.exe /c c:\Windows\System32\defrag.exe c: -v >c:\defraglog.txt

The "c:" after defrag.exe instructs the program to defragment the C drive, and the remaining options have it generate a log file that you can examine. In the task setup, you will also need to provide the name of an account to use for the task. Be sure that you use an account that has administrative privileges; they are needed to run the defragmenter. Defrag log text will show on the root of C:

No Events found!

Top