analyze disk from a command line?


  1. Posts : 275
    Win7 Starter 32 bits
       #1

    analyze disk from a command line?


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


  2. Posts : 2,072
    Windows 7 x64 Professional SP1
       #2

    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 Computer


  3. Posts : 8,375
    W7 Ultimate x64/W10 Pro x64/W11 Pro Triple Boot - Main PC W7 Remote PC Micro ATX W7 Pro x64/W11 Pro
       #3

    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 Computers


  4. Posts : 275
    Win7 Starter 32 bits
    Thread Starter
       #4

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

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

    solarmystic said:
    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 Computer


  5. Posts : 19,383
    Windows 10 Pro x64 ; Xubuntu x64
       #5

    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 Attached Thumbnails analyze disk from a command line?-capture.jpg  
      My Computer


  6. Posts : 8,375
    W7 Ultimate x64/W10 Pro x64/W11 Pro Triple Boot - Main PC W7 Remote PC Micro ATX W7 Pro x64/W11 Pro
       #6

    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 Computers


  7. Posts : 275
    Win7 Starter 32 bits
    Thread Starter
       #7

    thank u,

    Golden said:
    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 Computer


 

  Related Discussions
Our Sites
Site Links
About 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 23:59.
Find Us