Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Performance > What does "defrag.exe -c -i" do?

Reply
Thread Tools Display Modes

What does "defrag.exe -c -i" do?

 
 
bryantyler
Guest
Posts: n/a

 
      10-02-2007
%windir%\system32\defrag.exe -c -i

I have this in my Task Scheduler and was wondering what the -c -i is
for? I have one drive seperated into 2 partitions (1 main, 1
backup). Does this command line defrag both C: & D:? Thanks for any
help.

 
Reply With Quote
 
 
 
 
Ramesh, MS-MVP
Guest
Posts: n/a

 
      10-02-2007
Open an elevated Command Prompt, and type "defrag /?" to know more details about the parameters used and their description. To open an elevated Command Prompt, click Start, click All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.

- - - - - -
Microsoft Windows [Version 6.0.6000]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.

C:\Windows\system32>defrag /?
Description: Locates and consolidates fragmented files on local volumes to
improve system performance.

Syntax: defrag <volume> -a [-v]
defrag <volume> [{-r | -w}] [-f] [-v]
defrag -c [{-r | -w}] [-f] [-v]

Parameters:

Value Description

<volume> Specifies the drive letter or mount point path of the volume to
be defragmented or analyzed.

-c Defragments all volumes on this computer.

-a Performs fragmentation analysis only.

-r Performs partial defragmentation (default). Attempts to
consolidate only fragments smaller than 64 megabytes (MB).

-w Performs full defragmentation. Attempts to consolidate all file
fragments, regardless of their size.

-f Forces defragmentation of the volume when free space is low.

-v Specifies verbose mode. The defragmentation and analysis output
is more detailed.

-? Displays this help information.

Examples:

defrag d:
defrag d:\vol\mountpoint -w -f
defrag d: -a -v
defrag -c -v

- - - -

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com


"bryantyler" <> wrote in message news: ups.com...
%windir%\system32\defrag.exe -c -i

I have this in my Task Scheduler and was wondering what the -c -i is
for? I have one drive seperated into 2 partitions (1 main, 1
backup). Does this command line defrag both C: & D:? Thanks for any
help.

 
Reply With Quote
 
Mr. Damon A. Jewett
Guest
Posts: n/a

 
      10-02-2007
no it only defrags the main drive lol



"bryantyler" <> wrote in message
news: ups.com...
> %windir%\system32\defrag.exe -c -i
>
> I have this in my Task Scheduler and was wondering what the -c -i is
> for? I have one drive seperated into 2 partitions (1 main, 1
> backup). Does this command line defrag both C: & D:? Thanks for any
> help.
>


 
Reply With Quote
 
Sam Kroonenburg [MSFT]
Guest
Posts: n/a

 
      10-03-2007
This will defrag all of your volumes that are eligible for defrag.
So, yes, it will defrag both C: and D:.

If you are manually invoking a defrag using the command line, do not use
the -i flag. Just type "defrag -c"

Thanks,
Sam

"bryantyler" <> wrote in message
news: ups.com...
> %windir%\system32\defrag.exe -c -i
>
> I have this in my Task Scheduler and was wondering what the -c -i is
> for? I have one drive seperated into 2 partitions (1 main, 1
> backup). Does this command line defrag both C: & D:? Thanks for any
> help.
>


 
Reply With Quote
 
Marchy
Guest
Posts: n/a

 
      05-04-2008

So nobody has found out what exactly the "-i" flag does?
It is not documented in the help description.


--
Marchy
 
Reply With Quote
 
SG
Guest
Posts: n/a

 
      05-05-2008
Hi,

From what I've found. but cannot confirm is.......
-i makes defrag run in the background and only if the computer is idle

--
All the best,
SG

Is your computer system ready for Vista?
https://winqual.microsoft.com/hcl/

"Marchy" <> wrote in message
news:...
>
> So nobody has found out what exactly the "-i" flag does?
> It is not documented in the help description.
>
>
> --
> Marchy


 
Reply With Quote
 
Mark
Guest
Posts: n/a

 
      05-05-2008
http://blogs.technet.com/filecab/arc...arameters.aspx


"Marchy" <> wrote in message
news:...
>
> So nobody has found out what exactly the "-i" flag does?
> It is not documented in the help description.
>
>
> --
> Marchy


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Defrag increases "used space" as reported by command-line defrag - mwhiting001@hotmail.com.NO_SPAM Windows Vista Performance 15 06-19-2009 08:34 PM
Vista not wotking with "My Computer" or "Control Panel", "Screen Saver" Platebanger Windows Vista General Discussion 6 02-05-2008 01:54 PM
"O&O Defrag" compared to "DiskKeeper" - Opinions? Mark Conrad Windows Vista Performance 4 11-15-2007 05:51 PM
Defrag, the annoying Vista "feature" HAL Windows Vista General Discussion 2 05-03-2007 07:23 AM
WM5 Sync with Vista "Windows Calender", "Contacts", and "Mail" Tony Windows Vista General Discussion 1 02-16-2007 11:20 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59