Discussion in 'Windows Vista Performance' started by JCG, Mar 18, 2010.

  1. JCG

    JCG Guest


    Within my task scheduler, Windows Defrag is configured as such:

    %windir%\system32\defrag.exe -c-i-g

    I believe -c is to defrag my c:\ drive.

    What are the switches -i and -g for?

    Thanks in advance...j
    JCG, Mar 18, 2010
    1. Advertisements

  2. defrag volume [/a] Analyzes the volume and displays a summary of the
    analysis report.

    defrag volume [/a] [/v]

    defrag volume [/v] Displays the complete analysis and defragmentation

    When used in combination with /a, displays only the analysis report. When
    used alone, displays both the analysis and defragmentation reports.

    defrag volume [/f] Forces defragmentation of the volume regardless of
    whether it needs to be defragmented.

    /? : Displays help at the command prompt.
    Ǝиçεl, Mar 18, 2010
    1. Advertisements

  3. JCG

    JCG Guest

    Thanks for the info. However, what does -c and -g do. Maybe it is an error
    in Vista setup?

    JCG, Mar 20, 2010
  4. JCG

    R. C. White Guest

    Hi, JCG.

    As Ǝиçεl said:
    At the Command Prompt, simply type:
    defrag /?

    That should produce what I call a mini-Help file that shows the switches and
    parameters available with the defrag command - and the syntax for using
    them. This shows that all the switches use the slash "/" character, rather
    than hyphen "-". Many commands will actually accept a variety of such
    characters; I don't know if defrag will accept "-" for "/". And they
    usually are not fussy about "c" or "C" - but they are insistent on the colon
    when referring to volume ("drive") letters.

    Use defrag /c to "Perform the operation on all volumes". Specify defrag C:
    to operate only on Drive C:.

    This does not show -i or -g as available switches, and I don't know what
    those do. They may be a part of Task Scheduler, rather than of Defrag.

    R. C. White, CPA
    San Marcos, TX

    Microsoft Windows MVP
    Windows Live Mail 2009 (14.0.8089.0726) in Win7 Ultimate x64

    R. C. White, Mar 20, 2010
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.