MeraForum Community.No 1 Pakistani Forum Community - View Single Post - Defrag At Once
Thread: Defrag At Once
View Single Post
(#1)
Old
SALMAN SALMAN is offline
Banned
 


Posts: 630
My Photos: ()
Country:
Star Sign:
Join Date: Jun 2010
Location: Lucknow ( I N D I A )
Gender: Male
mini Defrag At Once - >>   Show Printable Version  Show Printable Version   Email this Page  Email this Page   08-14-2010, 11:37 PM

How To Defragment Mutiple Drives At Once

Their is no option to defragment multiple hard drives at once, You have to create a batch file to do the process.

Open Notepad and Paste below code in it, Save it as defragall.bat and choose option “All Files” and Save it.

Windows Disk Defragmenter
Copyright (c) 2001 Microsoft Corp. and Executive Software International, Inc.
Usage:
defrag [-a] [-f] [-v] [-?]
volume drive letter or mount point (d: or d:\vol\mountpoint)
-a Analyze only
-f Force defragmentation even if free space is low
-v Verbose output
-? Display this help text
defrag c:-f
defrag d:-f
defrag e:-f
defrag f:-f

Now whenever you open this batch file, it will Analyze and Defragment your drives automatically. By default it will defragment Drive C, D, E and F. If you want to add other drive replace it with your drive letter.

For Example, if your drive letter is H, Then

defrag c:-f WITH defrag H:-f

Thats all. You can now Paste this file on desktop so you will remember to start every time you start your pc.

 

Reply With Quote Share on facebook
Sponsored Links