Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: analyze disk from a command line?


30 Jun 2012   #1

Win7 Starter 32 bits
 
 
analyze disk from a command line?

how do u analyze disk or defrag disk from a command line?

My System SpecsSystem Spec
.

30 Jun 2012   #2

Windows 7 x64 Professional SP1
 
 

To defrag from command line:-

At the command line type in defrag followed by the parameters you wish to add on it

Parameters:

Value Description

/A Perform analysis on the specified volumes.

/C Perform the operation on all volumes.

/E Perform the operation on all volumes except those specified.

/H Run the operation at normal priority (default is low).

/M Run the operation on each volume in parallel in the background.

/T Track an operation already in progress on the specified volume.

/U Print the progress of the operation on the screen.

/V Print verbose output containing the fragmentation statistics.

/X Perform free space consolidation on the specified volumes.

So for example if you wish to analyze and defrag C: you'd type in:-

defrag C: /A

Hope that helps!
My System SpecsSystem Spec
30 Jun 2012   #3

Windows 7 Ultimate x64, XP Mode, W8.1 Preview VM - 7 Pro x64 second remote tower
 
 

That's an easy one there! You can look at two different pages for this. The first being a thread over at VistaForums seen at Analyze Disk Fragmentation - Vista Forums

The other is an eHow guide on how to go about this from the command line or Start>Run seen at How to Defragment From a Command Line | eHow.com

And for the bold you can start up the Defrag tool from a command prompt window as well as described in a Techdunes guide. Defragment your Hard Disk from Command prompt. | Techdunes
My System SpecsSystem Spec
.


30 Jun 2012   #4

Win7 Starter 32 bits
 
 

an error message showed up,
do u know how to fix this?

analyze disk from a command line?-defrag.command.png

Quote   Quote: Originally Posted by solarmystic View Post
To defrag from command line:-

At the command line type in defrag followed by the parameters you wish to add on it

Parameters:

Value Description

/A Perform analysis on the specified volumes.

/C Perform the operation on all volumes.

/E Perform the operation on all volumes except those specified.

/H Run the operation at normal priority (default is low).

/M Run the operation on each volume in parallel in the background.

/T Track an operation already in progress on the specified volume.

/U Print the progress of the operation on the screen.

/V Print verbose output containing the fragmentation statistics.

/X Perform free space consolidation on the specified volumes.

So for example if you wish to analyze and defrag C: you'd type in:-

defrag C: /A

Hope that helps!


My System SpecsSystem Spec
30 Jun 2012   #5

Microsoft Community Contributor Award Recipient

Windows 7 Ult. x64 Windows 8.1 x64
 
 

Hi,

You need to run the commands from an elevated command prompt:

1. Click Start Orb
2. In search box, type cmd
3. Right-click on cmd.exe, and choose 'Run as Administrator'

See image below - note the prompt

Regards,
Golden


Attached Thumbnails
analyze disk from a command line?-capture.jpg  
My System SpecsSystem Spec
30 Jun 2012   #6

Windows 7 Ultimate x64, XP Mode, W8.1 Preview VM - 7 Pro x64 second remote tower
 
 

When going to Start>Programs>Accessories you simply right click on the command prompt shortcut there as well to open up an elevated prompt. You can create a shortcut for this as well. Elevated Program Shortcut - Create for Standard User
My System SpecsSystem Spec
01 Jul 2012   #7

Win7 Starter 32 bits
 
 

thank u,

Quote   Quote: Originally Posted by Golden View Post
Hi,

You need to run the commands from an elevated command prompt:

1. Click Start Orb
2. In search box, type cmd
3. Right-click on cmd.exe, and choose 'Run as Administrator'

See image below - note the prompt

Regards,
Golden
My System SpecsSystem Spec
Reply

 analyze disk from a command line?




Thread Tools



Similar help and support threads for2: analyze disk from a command line?
Thread Forum
How to analyze CBS.log file by SFC command to detect corrupt files? Performance & Maintenance
How can I set this via command-line or registry? Customization
Gpedit via command line Performance & Maintenance
libraries and the command line Performance & Maintenance
Does Scheduled Defrags analyze the disk first? Performance & Maintenance
How to run a command line utility? General Discussion
Command Line General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 11:10 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33