Windows 8 and 8.1 Forums


Defrag just opens up a command prompt then closes

  1. #1

    Defrag just opens up a command prompt then closes


    Whenever I run defrag this happens:

    Click image for larger version

    It goes away after about 0.1 second and I can't read what it says (it goes by to fast)

    Why, and how do I fix?

      My System SpecsSystem Spec

  2. #2


    Posts : 959
    Windows 8.1, 10


    How are you starting defrag?

    This tutorial may help?
    Optimize Drives - Defrag HDD and TRIM SSD in Windows 8
      My System SpecsSystem Spec

  3. #3


    I am having the very same problem! I go to the new Windows Start and do a search, select on the defrag and up pops the command prompt and then disappears without starting the defragmenter.
      My System SpecsSystem Spec

  4. #4


    Posts : 5,360
    7/8/ubuntu/Linux Deepin


    try searching for dfrgui.exe
      My System SpecsSystem Spec

  5. #5


    Lynnwood, WA
    Posts : 173
    Windows 8, Windows 7


    if you just run "defrag.exe" you need to specify parameters. defrag.exe is best run in a command line with the proper flags. In this case:

    Code:
    defrag C: /u /v
    will show you the progress and results of defragmenting the C: volume.

    Like what was suggested, dfrgui.exe is the GUI-based version we're all used to seeing. Next time you search for defrag, choose "defragment and optimize drives."
      My System SpecsSystem Spec

  6. #6


    Posts : 959
    Windows 8.1, 10


    Quote Originally Posted by JLyman View Post
    Next time you search for defrag, choose "defragment and optimize drives."
    I think the key step if you're searching from the Start screen is make sure you search for "Settings" and not "Apps".

    (I don't know why the defragmenter is a setting rather than an app, as to my eyes it is much more like an app, as it's a program that actively does stuff, and much less like a setting which should surely just sit there once set.... but a setting is what Windows 8 calls it.)
      My System SpecsSystem Spec

  7. #7


    Posts : 60
    Windows 8.1 pro


    Just open start and type optimze to quickly bring up defrag/optimze drives
      My System SpecsSystem Spec

  8. #8


    Harrisonburg, Va.
    Posts : 10,488
    Windows 8.1.1 Pro with Media Center


    Click image for larger version
      My System SpecsSystem Spec

  9. #9


    Posts : 959
    Windows 8.1, 10


    Quote Originally Posted by chromatica View Post
    Just open start and type optimze to quickly bring up defrag/optimze drives
    You still need to change to "settings" rather than "apps" though.
      My System SpecsSystem Spec

Defrag just opens up a command prompt then closes
Related Threads
I click on the OneDrive icon on the Windows 8.1 Start screen and the app opens, then immediately closes. All other apps work OK. I have tried the troubleshooters, reset the Store cache and uninstalled and reinstalled Onedrive but the problem continues. Another issue that is probably related is,...
I just finished updating my copy of Windows 8 Pro to Windows 8.1 Pro (manually downloaded the ISO from Microsoft and did an in-place update within the existing copy of W8). After I did all of the available Windows Updates, I noticed that, whenever I try and open an elevated Command Prompt window...
Command Prompt help in General Support
The average monitor can display 25 lines of text in full screen mode. When you list a directory containing more than 25 files, some of the filenames disappear off the top of the screen before you have a chance to read them. What do you add to the DIR command to always prevent this?
in fresh paint when you select save as the bar pops up but then closes instantly. in mail when trying to attach a file the bar pops up but then closes instantly. it happens in other places too! :cool:
Hey all, Been quite a while since I've posted here, but an odd problem has come up for me. Overall Windows 8 has been great and problem-free, but I'm stuck on this one. For some reason, when I open the Run box, it says "This task will be created with administrative privileges" as if I had...
Command Prompt shortcut in General Support
Hello, I don't know if anyone has suggested this before or not. Sorry to be redundant if they have. See Picture attached.
MAIL app opens then closes in Browsers & Mail
Just put a new HD in, and did a clean install of Windows 8 RTM x64. Had it on previously, and all ran fine. After this install, one issue I have is with the MAIL app on metro. I click on it, it opens, then closes. If I click on it in the top left of the screen on the open bar, its there, and...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook