Pages

Thursday, October 31, 2013

@echo off

echo *****Examples defragmentation of hard disk for cmd*****

 echo Print the progress of the operation on the screen,Print verbose output containing the fragmentation statistics.
defrag C: /U /V
pause


echo Run the operation on each volume in parallel in the background.
defrag C: D: /M
pause


echo Perform analysis on the specified volumes,Print the progress of the operation on the screen.
defrag C:\mountpoint /A /U
pause

echo Perform the operation on all volumes,Run the operation at normal priority ,Print verbose output containing the fragmentation statistics.
defrag /C /H /V
pause

exit

Copy it in notepad and save as .bat file

No comments:

Post a Comment