Disk Defragmenter

M

Michael Mauzey

Somehow my Disk Defragmenter has stopped working ... I can use my
Norton Speed Disk; but how do
I re-install just the Disk Defragmenter? I went to my inf
archive and found "dfrg", but when I click on install, nothing happens
.... thanks ... Michael Mauzey
 
C

Carey Frisch [MVP]

Visit http://www.kellys-korner-xp.com/xp_tweaks.htm and scroll down to
Item No. 291 (Restore Defrag Snap-In).

[Courtesy of MS-MVP Kelly Theriot]

--
Carey Frisch
Microsoft MVP
Windows XP - Shell/User

Be Smart! Protect your PC!
http://www.microsoft.com/security/protect/

---------------------------------------------------------------------------------


| Somehow my Disk Defragmenter has stopped working ... I can use my
| Norton Speed Disk; but how do
| I re-install just the Disk Defragmenter? I went to my inf
| archive and found "dfrg", but when I click on install, nothing happens
| ... thanks ... Michael Mauzey
 
V

*Vanguard*

Michael Mauzey said in news:[email protected]:
Somehow my Disk Defragmenter has stopped working ... I can use my
Norton Speed Disk; but how do
I re-install just the Disk Defragmenter? I went to my inf
archive and found "dfrg", but when I click on install, nothing happens
... thanks ... Michael Mauzey

There really are no C\Windows\System32\dfrg.msc (Windows) or C:\Windows\System32\defrag.exe (DOS) files on your system?
 
S

SidBord

I think you're lucky. I swear by Speed Disk. I'd use it
any day before Window's deferagmenter.
 
M

Michael Mauzey

Thanks Carey ... but what do I do with that script?

Visit http://www.kellys-korner-xp.com/xp_tweaks.htm and scroll down to
Item No. 291 (Restore Defrag Snap-In).

[Courtesy of MS-MVP Kelly Theriot]

--
Carey Frisch
Microsoft MVP
Windows XP - Shell/User

Be Smart! Protect your PC!
http://www.microsoft.com/security/protect/

----------------------------------------------------------------------
-----------


| Somehow my Disk Defragmenter has stopped working ... I can use my
| Norton Speed Disk; but how do
| I re-install just the Disk Defragmenter? I went to my inf
| archive and found "dfrg", but when I click on install, nothing
happens
| ... thanks ... Michael Mauzey
 
M

Michael Mauzey

Yes .. but when I open the C\Windows\System32\dfrg.msc file, the
bottom half of Disk Defragmenter is totally grayed out .. just like if
I open it from my Start menu.
If I open the DOS version, it just opens a DOS box
VERY quickly and then closes it immediately!

message Michael Mauzey said in news:[email protected]:
Somehow my Disk Defragmenter has stopped working ... I can use my
Norton Speed Disk; but how do
I re-install just the Disk Defragmenter? I went to my inf
archive and found "dfrg", but when I click on install, nothing happens
... thanks ... Michael Mauzey

There really are no C\Windows\System32\dfrg.msc (Windows) or
C:\Windows\System32\defrag.exe (DOS) files on your system?
 
M

Michael Mauzey

Thanks Sid ... that's what I'm doing ... just wanted both options. Am
getting pretty sick of Norton's ANYTHING!

I think you're lucky. I swear by Speed Disk. I'd use it
any day before Window's deferagmenter.
 
V

*Vanguard*

Michael Mauzey said in news:%[email protected]:
Yes .. but when I open the C\Windows\System32\dfrg.msc file, the
bottom half of Disk Defragmenter is totally grayed out .. just like if
I open it from my Start menu.
If I open the DOS version, it just opens a DOS box
VERY quickly and then closes it immediately!

message Michael Mauzey said in news:[email protected]:

There really are no C\Windows\System32\dfrg.msc (Windows) or
C:\Windows\System32\defrag.exe (DOS) files on your system?

Are you logged in under an admin-level account when running the defragmenter (dfrg.msc)? Administrator privileges are required. If your account is not in the Administrators group, and if you do not want to logoff, you can use 'runas /user:<adminacct> "mmc dfrg.msc"' (note the command string is quoted because of spaces) but you will need to supply the password for the <adminaccount>.

The DOS version open a window and closes it quickly because all it did was present some help text and exit so the window isn't needed anymore. ALL DOS programs are like that. You need to open a DOS shell (aka COmmand Prompt) and run it from there (so the window stays open). When you open a DOS shell, you load a copy of the command interpreter (cmd.exe) which then you enter the command to run your program. When the program exits, you get returned to the command interpreter. Without the command interpreter, the exit of the program results in closing a no longer needed window. If you don't want to open a DOS shell and then enter defrag.exe then run "cmd /k defrag.exe" which will open and LEAVE open the window with the command interpreter still loaded after running and exiting the command.

Back to the dfrg.msc applet. When you load it, you say the bottom half is solid gray. Or do you mean you CAN see the bottom pane but the buttons are disabled? Is a drive from the list in the upper pane selected? Have you run "chkdsk /r" on all hard drives and then tried using the defragmenter?

Can you load the Disk Management applet (diskmgmt.msc) and see the drives okay? Have you tried using the Action -> Rescan menu (and then go back to dfrg.msc)?

The dfrg.msc is just the MMC (Microsoft Management Console) interface that had the defragmenter snap-in added to it. That isn't the real program. There are other files used to actually run the defragmenter snap-in. Apparently you have some missing or corrupted files. Have you yet tried running the System File Checker via "sfc /scannow"? If that doesn't work to fix the defragmenter, maybe you're stuck with booting from the Windows install CD and using the second Repair option (the first one puts you into Recovery Console mode) to see if a repair gets this tool fixed. If you do that, remember to run Windows Updates to ensure you have all the latest updated files rather than anything that got copied off the old static copies from the CD.
 
V

*Vanguard*

Michael Mauzey said in news:[email protected]:
Thanks Carey ... but what do I do with that script?

Visit http://www.kellys-korner-xp.com/xp_tweaks.htm and scroll down to
Item No. 291 (Restore Defrag Snap-In).

[Courtesy of MS-MVP Kelly Theriot]

Somehow my Disk Defragmenter has stopped working ... I can use my
Norton Speed Disk; but how do
I re-install just the Disk Defragmenter? I went to my inf
archive and found "dfrg", but when I click on install, nothing
happens ... thanks ... Michael Mauzey

It's a .reg file (created by an export from regedit.exe). You double-click on it and say Yes to add its entries to the registry, or you right-click on it and select Merge. It's a text file so you can review it using Notepad or any text editor of your choosing.

HOW TO: Add, Modify, or Delete Registry Subkeys and Values by Using a Registration Entries (.reg) File
http://support.microsoft.com/?id=310516
See section titled "Distributing Registry Changes".
 
M

Michael Mauzey

yes, i am logged in as the Administrator.

When I open Disk Defragmenter, the program opens up ... at the top, it
says "Disk Defragmenter". Under that are 4 folder topics:

File Action View Help

and under that, it says:

Mauzey (C:) NTSF 112 78.53 70%

Under that there is no more writing ... there are 4 or 5 radio buttons
to be pressed, but no labels on the button and when you press any of
them, it freezes.
Yes, a drive in the upper pane IS selected (Mauzey (C:)). I ran
chdsk /r and it changed nothing. If I click on the "Action", it just
list dead air space and then at the bottom, it says "Help".

Thanks for your help, but instead of me trying a repair option from
the Install CD, i'll just leave it broken and continue using Norton's
Speed Disk.
message Michael Mauzey said in news:%[email protected]:
Yes .. but when I open the C\Windows\System32\dfrg.msc file, the
bottom half of Disk Defragmenter is totally grayed out .. just like if
I open it from my Start menu.
If I open the DOS version, it just opens a DOS box
VERY quickly and then closes it immediately!

message Michael Mauzey said in news:[email protected]:

There really are no C\Windows\System32\dfrg.msc (Windows) or
C:\Windows\System32\defrag.exe (DOS) files on your system?

Are you logged in under an admin-level account when running the
defragmenter (dfrg.msc)? Administrator privileges are required. If
your account is not in the Administrators group, and if you do not
want to logoff, you can use 'runas /user:<adminacct> "mmc dfrg.msc"'
(note the command string is quoted because of spaces) but you will
need to supply the password for the <adminaccount>.

The DOS version open a window and closes it quickly because all it did
was present some help text and exit so the window isn't needed
anymore. ALL DOS programs are like that. You need to open a DOS
shell (aka COmmand Prompt) and run it from there (so the window stays
open). When you open a DOS shell, you load a copy of the command
interpreter (cmd.exe) which then you enter the command to run your
program. When the program exits, you get returned to the command
interpreter. Without the command interpreter, the exit of the program
results in closing a no longer needed window. If you don't want to
open a DOS shell and then enter defrag.exe then run "cmd /k
defrag.exe" which will open and LEAVE open the window with the command
interpreter still loaded after running and exiting the command.

Back to the dfrg.msc applet. When you load it, you say the bottom
half is solid gray. Or do you mean you CAN see the bottom pane but
the buttons are disabled? Is a drive from the list in the upper pane
selected? Have you run "chkdsk /r" on all hard drives and then tried
using the defragmenter?

Can you load the Disk Management applet (diskmgmt.msc) and see the
drives okay? Have you tried using the Action -> Rescan menu (and then
go back to dfrg.msc)?

The dfrg.msc is just the MMC (Microsoft Management Console) interface
that had the defragmenter snap-in added to it. That isn't the real
program. There are other files used to actually run the defragmenter
snap-in. Apparently you have some missing or corrupted files. Have
you yet tried running the System File Checker via "sfc /scannow"? If
that doesn't work to fix the defragmenter, maybe you're stuck with
booting from the Windows install CD and using the second Repair option
(the first one puts you into Recovery Console mode) to see if a repair
gets this tool fixed. If you do that, remember to run Windows Updates
to ensure you have all the latest updated files rather than anything
that got copied off the old static copies from the CD.
 
D

David Candy

What happens if you type

defrag c:

in a command prompt.
Neither Defrag.exe (above) or defrag.msc (your pretty program) actually defrags the drive. They both start either dfrgntfs or dfrgfat to do the work.
 
M

Michael Mauzey

When I do as you suggest, I get an error message:

Error: cannot load resource DLL
Contact System Administrator (that would be me)

What happens if you type

defrag c:

in a command prompt.
Neither Defrag.exe (above) or defrag.msc (your pretty program)
actually defrags the drive. They both start either dfrgntfs or dfrgfat
to do the work.
 
V

*Vanguard*

Michael Mauzey said in news:[email protected]:
When I do as you suggest, I get an error message:

Error: cannot load resource DLL
Contact System Administrator (that would be me)

Sure sounds like on of the support files, as David mentioned or maybe another, are missing or screwed up. "sfc /scannow" is not a reinstall or rebuild but it will check if the copies of the files saved under C:\Windows\System32\Dllcache match those you have in C:\Windows\System32 or finds if some are missing.

Description of Windows XP and Windows Server 2003 System File Checker (Sfc.exe)
http://support.microsoft.com/?id=310747
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top