Yes, it does.
There are two defrag tools in XP.
Dfrg.msc is the pretty one that opens from
Start\All Programs\Accessories\System Tools.
defrag.exe = Disk Defragmenter Module, the command line
tool.
defrag.exe is the command line tool that runs from a
command prompt.
defrag.exe is the one that you can schedule.
Defrag C:/ -f starts defrag.exe on C and forces
defragmentation even if
free space is low.
The / isn't needed in the line above.
Defrag C: /f starts defrag.exe on C and forces
defragmentation even if free
space is low.
Defrag C: -f starts defrag.exe on C and forces
defragmentation even if free
space is low.
- and / work the same. They denote the switch(es). You
can use one or the
other.
Just like defrag -? is the same as defrag /?
C:\>Defrag /?
Usage:
Defrag <volume> [-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
C:\>defrag -?
Usage:
defrag <volume> [-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
From Microsoft Windows XP Inside Out, Second Edition:
Page 1245 & 1246
<quote>
[[Running Disk Defragmenter Using a Command Line
The command-line version of the Defrag utility uses the
exact same program
code as the graphical version. To use this command, type
defrag d: at any
command prompt, where d is the drive letter or mount
point
of an existing
volume. (For an explanation of mount points, see
“Assigning and Changing
Drive Letters or Drive Paths,” page 765.) You can use
the
following switches
with the Defrag command:
• /A Analyzes the selected drive or volume and
displays
a summary of the
analysis report.
• /V Displays complete (verbose) reports. When used in
combination with
/A, this switch displays only the analysis
report.
When used alone,
it displays both the analysis and defragmentation
reports.
• /F Forces defragmentation of the volume even if the
amount of free space
is low.
The command-line Disk Defragmenter does not provide any
progress indicator
except for a blinking cursor. To interrupt the
defragmentation process,
click in the command window and press Ctrl+C.]]
<end quote>
Defrag
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/defrag.mspx
--
Hope this helps. Let us know.
Wes
MS-MVP Windows Shell/User
In Bruce Hagen <
[email protected]> hunted and pecked:
From Microsoft Windows XP Inside Out:
To open the graphical Disk Defragmenter console, use
any
of
the following techniques:
* From the All Programs menu, choose Accessories>System
Tools>Disk Defragmenter.
*From the My Computer window, right click any drive
icon
and
choose Properties from the shortcut menu. Then click
the
Tools tab and click Defragment Now.
*Run Dfrg.msc from a command prompt.
*Right click on the My Computer icon on the Start Menu
and
choose Manage from the shortcut menu. In the Computer
Management console, open the Storage option in the
console
pane and select Disk Defragmenter.
(Defrag C:/ -f) does not start a Defrag.
--
Bruce Hagen
MS-MVP - (IE/OE)
~IB-CA~
"thunderstruck_302"
message
so what does that mean? Does that mean that it had
nothing
to defrag because
it was all done defraging before? If so thats good
:
Ok, thnx Bruce and Gerry. Just one thing. I let it
run
again. It did the same
thing: Gave the Microsoft information------> paused a
few
seconds hten gave
the analysis report with the Hard drive info. and
with
it
it said "0%
fragmented (0% file fragmentation)-------->
Let it run for a few minutes then said
Defragmentation
report and it said
the exact same thing as the Analysis report with 0%
and
all beside it. Then
it was finished because it was ready for another
command
prompt.
:
Description of the New Command Line Defrag.exe
Included
with Windows XP
http://support.microsoft.com/default.aspx?scid=kb;en-us;283080
--
Hope this helps.
Gerry
~~~~~~~~~~~~~~~~~~~~~~~~
FCA
Using invalid email address
Stourport, Worcs, England
Enquire, plan and execute.
~~~~~~~~~~~~~~~~~~~~~~~~
Please tell the newsgroup how any
suggested solution worked for you.
~~~~~~~~~~~~~~~~~~~~~~~~
"thunderstruck_302"
in message
i am trying to run defrag through a Command Prompt.
I
type "Defrag
C:/ -f"
It gives all of the OS info., pauses for a few
seconds then give me my
hard
drive info. and fragmentation info. Then it doesnt
do
anything. I
waited out
25 minutes in front of the computer watching it do
nothing. The
loading LED
on my tower is flashing but for 25 minutes the
Command prompt line
just
blinks. Is this normal or is there some error?