A Windows Vista forum. Vista Banter

Welcome to Vista Banter.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to ask questions and reply to others posts, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

Go Back   Home » Vista Banter forum » Microsoft Windows Vista » Performance and Maintainance of Windows Vista
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Performance and Maintainance of Windows Vista A forum for performance and maintenance tasks in Windows Vista. (microsoft.public.windows.vista.performance_maintainance)

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



 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old October 2nd 07, 02:27 PM posted to microsoft.public.windows.vista.performance_maintenance
bryantyler
external usenet poster
 
Posts: 1
Default What does "defrag.exe -c -i" do?

%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.

  #2 (permalink)  
Old October 2nd 07, 02:46 PM posted to microsoft.public.windows.vista.performance_maintenance
Ramesh, MS-MVP
external usenet poster
 
Posts: 1,595
Default What does "defrag.exe -c -i" do?

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\system32defrag /?
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 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.

  #3 (permalink)  
Old October 2nd 07, 07:23 PM posted to microsoft.public.windows.vista.performance_maintenance
Mr. Damon A. Jewett
external usenet poster
 
Posts: 1
Default What does "defrag.exe -c -i" do?

no it only defrags the main drive lol



"bryantyler" wrote in message
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.


  #4 (permalink)  
Old October 3rd 07, 05:51 PM posted to microsoft.public.windows.vista.performance_maintenance
Sam Kroonenburg [MSFT]
external usenet poster
 
Posts: 7
Default What does "defrag.exe -c -i" do?

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
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.


  #5 (permalink)  
Old May 4th 08, 06:16 PM posted to microsoft.public.windows.vista.performance_maintenance
Marchy
external usenet poster
 
Posts: 1
Default What does "defrag.exe -c -i" do?


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


--
Marchy
  #6 (permalink)  
Old May 5th 08, 03:43 AM posted to microsoft.public.windows.vista.performance_maintenance
SG[_3_]
external usenet poster
 
Posts: 664
Default What does "defrag.exe -c -i" do?

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
...

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


--
Marchy


  #7 (permalink)  
Old May 5th 08, 10:30 AM posted to microsoft.public.windows.vista.performance_maintenance
Mark[_17_]
external usenet poster
 
Posts: 35
Default What does "defrag.exe -c -i" do?

http://blogs.technet.com/filecab/arc...arameters.aspx


"Marchy" wrote in message
...

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


--
Marchy


 




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

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



All times are GMT. The time now is 10:10 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.Search Engine Optimization by vBSEO 3.0.0 RC6
Copyright ©2004-2012 Vista Banter.
The comments are property of their posters.