Hi, JCG.
As Ǝиçεl said:
>> /? : Displays help at the command prompt.
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.
RC
--
R. C. White, CPA
San Marcos, TX
rc@grandecom.net
Microsoft Windows MVP
Windows Live Mail 2009 (14.0.8089.0726) in Win7 Ultimate x64
"JCG" <JCG@discussions.microsoft.com> wrote in message
news:BECC9719-D1C2-4F16-9CB1-76F31379CF54@microsoft.com...
> Thanks for the info. However, what does -c and -g do. Maybe it is an
> error
> in Vista setup?
>
> "Ǝиçεl" wrote:
>
>> 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
>> reports.
>>
>> 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.
>> -=-
>>
>>
>>
>> "JCG" wrote:
>>
>> > Greetings:
>> >
>> > 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