Question Locked

And the new problem is (groan)

0 helpful
22 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hello.

I have a new problem.

On one of my computers (the one that acts as the "server") for remote desktop, I cannot defrag. I get a message saying:

"MMC cannot open the file C\Windows\system32\dfrg.msc. This may be because the file does not exist, is not a MMC console, or may have been created by a later version of MMC. This may also be because you do not have sufficient access rights to the file."

Now I recently did make some changes to MMC (I think) in connection with trying to get remote desktop to work.

How can I get defrag working again?

Thanks in advance.

Paul

22 replies

by the scummy one

I know some time ago I ran into several systems that didnt have dfrg, msconfig, or msinfo32 on them. Not sure why, they just went missing. I re-added them and all was good.

by var1016

Hello,

And thanks for your reply.

Yes I just searched for the file and it is there in System 32, size 41kB. I clicked on it and got the same dialog box...

Paul

by shhite

I just had this issue not to long ago. Here are a couple of links that might help you.

http://support.microsoft.com/kb/326574

or

http://tinyurl.com/5c7t8l

Hope this helps.

Thanks

by var1016

Thank you. Defrag now works.

I went through the list - scannow was a problem as I tried to use it but nothing happened (tried twice after a system restore which I applied because after one of the steps I lost my remote desktop connection).

The solution was the MMC 3.0 update.

Best wishes

Paul

by rob miners

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

Windows Disk Defragmenter
Copyright (c) 2001 Microsoft Corp. and Executive Software International, Inc.
Usage:
defrag [-a] [-f] [-v] [-?]
volume drive letter or mount point (d: or d:\vol\mountpoint)
-a Analyze only
-f Force defragmentation even if free space is low
-v Verbose output
-? Display this help text

At a Command Prompt type defrag c: -f

Create a Batch File

@echo off
C:
defrag c: -f
go to end

:END

by var1016

In fact I have cured it by updating MMC. This looks useful - I have copied and saved it.

Best wishes

Paul

by rob miners

Batch File saved as a Shortcut to the Desktop. When you go for morning tea you could run it and it should be finished by the time you get back. ;)

Once a month for light use and once a week for full on use and you should be OK.

by dumphrey

create a scheduled task pointing to the batch file you have, then it can be automated to run at night or weekends, even if your logged off.

by var1016

Hello.

How do I install this file? Do I copy all the text you supplied into the cmd box?

Thanks

Paul

by rob miners

To create a Batch File copy and paste the text below into Notepad and save it to C: as def.bat

@echo off
C:
defrag c: -f
go to end

:END

by var1016

I have made the batch file and saved it to C:\ but it doesn't run.

Here's an exact copy of what I saved:

@echo off
C:
defrag c: -g
go to end

:END

(g: is my second hard drive). If I try to run the file, a black box (like you get with cmd) flashes on the screen momentarily, and that's it!

What have I done wrong?

Thanks

Paul

by var1016

OK I copied the new one and this time it works - thank you! By the way the script says that "go" is not a recognised command - but it works anyway!

Best,

Paul

by rob miners

This will do C: and G:

@echo off
C:
defrag c: -f
go to drv

:DRV
G:
defrag G: -f
go to end
:END

by var1016

Thanks again.

Tell me, there is something I would really like to know: do you experts just give out these registry edits/program details off the cuff, or do you have to look them up somewhere? I ask because I am always staggered at the depth of esoteric knowledge displayed hereabouts!

Regards

Paul

by rob miners

on how familiar you are with the Question and the amount of experience that you have with it. A lot of them are straight off the cuff as they are regular problems that you often see.

If I am installing new Software I always check the instructions for the Gotcha's. It only takes a few minutes and can save hours of troubleshooting if something goes wrong.

When it comes to the Registry I always double check the information that I may supply as a mistake could be quite costly. If I am unsure of the outcome I normally use a test PC to get the results. I discovered very early on from watching one of my colleagues that you DO NOT USE a LIVE ENVIRONMENT for TESTING especially on a Network.

There are often questions asked that remind me that I haven't an answer for so I will research and try to find the answer for my benefit as well as the OP.

When I first started in IT I used to write everything down on paper which ended up being cumbersome and hard to find anything when you needed it. Now I keep Text Files with the relevent information and a quick search will find it. Sometimes if I need Graphics I will print them as PDF files.

That's how I do it and I hope this makes sense Paul.

Rob

by var1016

Thanks Rob, for taking the trouble to answer my rather broad question.

Each time someone is kind enought to provide some registry script or instructions, I save them in my "computing" directory, rather hoping that when the problem next arises I shall have the wit to remember that I have the answer already!

Best wishes

Paul

by rob miners

save them all up as they could come in handy one day.

This discussion is closed to new replies.