What is the Run CMD for defragment?

  • Thread starter Thread starter Joel
  • Start date Start date
J

Joel

I did this before but forgot to write it down. You can hit Windows key + R
and then type in something like defrag.svc to go immediately to the defrag
screen. What is the exact line?
 
Joel said:
I did this before but forgot to write it down. You can hit Windows key + R
and then type in something like defrag.svc to go immediately to the defrag
screen. What is the exact line?


defrag /?

to see the excat context you want
 
Joel said:
I did this before but forgot to write it down. You can hit Windows
key + R and then type in something like defrag.svc to go immediately
to the defrag screen. What is the exact line?

Start > Run > type in:

dfrg.msc

then hit Enter.

To run from the defragmenter from the command line or include in a script
you would use "defrag". For example

Typically you might type:

defrag C:\

But in a script you might want to force it with:

defrag C:\ -f

For help type:

defrag /?

to get a list of swtiches.
 
In Joel <[email protected]> had this to say:

My reply is at the bottom of your sent message:
I did this before but forgot to write it down. You can hit Windows
key + R and then type in something like defrag.svc to go immediately
to the defrag screen. What is the exact line?

Hmm... Unless you mean diskmgmt.msc perhaps?

--
Galen - MS MVP - Windows (Shell/User & IE)
http://dts-l.org/
http://kgiii.info/

"We approached the case, you remember, with an absolutely blank mind,
which is always an advantage. We had formed no theories. We were simply
there to observe and to draw inferences from our observations." -
Sherlock Holmes
 
Galen said:
In Joel <[email protected]> had this to say:

My reply is at the bottom of your sent message:


Hmm... Unless you mean diskmgmt.msc perhaps?

That's Disk Management, not the Defragmenter.

Windows's Disk Management:
diskmgmt.msc

Window's Defragmenter:
dfrg.msc

Commandline Defragment program [works with "arguments" and "switches"]:
defrag
 
In Saucy Lemon <[email protected]> had this to say:

My reply is at the bottom of your sent message:
Galen said:
In Joel <[email protected]> had this to say:

My reply is at the bottom of your sent message:


Hmm... Unless you mean diskmgmt.msc perhaps?

That's Disk Management, not the Defragmenter.

Windows's Disk Management:
diskmgmt.msc

Window's Defragmenter:
dfrg.msc

Commandline Defragment program [works with "arguments" and
"switches"]: defrag

After reading the above answers I was no longer certain which one they
wanted and figured they could at least access degrag from there. Someone,
you namely, having already mentioned the snap-in I figured it'd be good to
offer them all the answers they could possibly want. (Which is why it was
threaded under the OP and not under your response as your response was
perfectly valid.) (Or at least it should be threaded under the OP's question
and is here... No accounting for how it might show up on your PC.)

--
Galen - MS MVP - Windows (Shell/User & IE)
http://dts-l.org/
http://kgiii.info/

"We approached the case, you remember, with an absolutely blank mind,
which is always an advantage. We had formed no theories. We were simply
there to observe and to draw inferences from our observations." -
Sherlock Holmes
 
Galen said:
In Saucy Lemon <[email protected]> had this to say:

My reply is at the bottom of your sent message:
Galen said:
In Joel <[email protected]> had this to say:

My reply is at the bottom of your sent message:

I did this before but forgot to write it down. You can hit Windows
key + R and then type in something like defrag.svc to go
immediately to the defrag screen. What is the exact line?

Hmm... Unless you mean diskmgmt.msc perhaps?

That's Disk Management, not the Defragmenter.

Windows's Disk Management:
diskmgmt.msc

Window's Defragmenter:
dfrg.msc

Commandline Defragment program [works with "arguments" and
"switches"]: defrag

After reading the above answers I was no longer certain which one they
wanted and figured they could at least access degrag from there.
Someone, you namely, having already mentioned the snap-in I figured
it'd be good to offer them all the answers they could possibly want.
(Which is why it was threaded under the OP and not under your
response as your response was perfectly valid.) (Or at least it
should be threaded under the OP's question and is here... No
accounting for how it might show up on your PC.)

I just figured to clear it up and list them all!

'Have a nice one.
 
Joel said:
I did this before but forgot to write it down. You can hit Windows key + R
and then type in something like defrag.svc to go immediately to the defrag
screen. What is the exact line?

Command Line Options For XP:

http://www.fsref.com/pr/dosxp.htm
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds_new_tools.mspx
http://www.bootdisk.com/txtfiles/xprun.txt
 
Back
Top