Custom Search

Resolved XP Defrag Error: Cannot load resource DLL. Contact system administrator

Discussion in 'Windows XP and Older' started by TazDevilLooney, May 27, 2011.

Thread Status:
Not open for further replies.
  1. TazDevilLooney Admin

    Message Count:
    4,205
    Likes Received:
    612
    Trophy Points:
    131
    Operating System:
    Windows 7 Ultimate X64 SP1
    XP Defrag Error: Cannot load resource DLL. Contact system administrator.

    XP Home, SP3 with all current updates installed.

    I have tried,
    Hard driver error check.
    The system is clean of viruses.
    sfc /scannow did not correct the problem.

    Any idears?
  2. Makcalable I Only Know What I Know

    Message Count:
    8,532
    Likes Received:
    1,041
    Trophy Points:
    131
    Operating System:
    Windows 7 Ultimate X64 SP1
    Have you tried Renaming the existing explorer.exe to explorerOLD.exe and copy another copy across into C:\windows?? Best not to reboot either when performing this :wink:

    edit

    thinking this may be the cause as it is quite common.
  3. TazDevilLooney Admin

    Message Count:
    4,205
    Likes Received:
    612
    Trophy Points:
    131
    Operating System:
    Windows 7 Ultimate X64 SP1
    Now that's what i call out of box thinking. I'll do it. :happy:
  4. TazDevilLooney Admin

    Message Count:
    4,205
    Likes Received:
    612
    Trophy Points:
    131
    Operating System:
    Windows 7 Ultimate X64 SP1
    Copied explorer.exe from a good computer to the problem one. Still the same outcome. :sad:

    In DOS i get

    In Windows i get

    I see no option in the add or remove to add the defrag program.
  5. Makcalable I Only Know What I Know

    Message Count:
    8,532
    Likes Received:
    1,041
    Trophy Points:
    131
    Operating System:
    Windows 7 Ultimate X64 SP1
    Ummm ok... try and run sfc /Scanboot from the CD & also /Purgecache I know you ran sfc /scannow but try this way and see what happens.

    Have you considered a virus scan also? and a system restore?

    edit

    Had you any disk errors...? run chkdsk..
  6. TazDevilLooney Admin

    Message Count:
    4,205
    Likes Received:
    612
    Trophy Points:
    131
    Operating System:
    Windows 7 Ultimate X64 SP1
    sfc is present on my XP SP3 CD but is compressed SFC.EX_ Unable to run. I'll try in windows...

    Machine has had a full virus scan with various types of software -> None found!
    A system restore will not help if i don't know the date when the problem started. Might of been 2 years ago for all i know. :happy:
  7. Makcalable I Only Know What I Know

    Message Count:
    8,532
    Likes Received:
    1,041
    Trophy Points:
    131
    Operating System:
    Windows 7 Ultimate X64 SP1
    You have tried a repair install?

    Or you could;

    It is possible just run the installation again over the top of the original... see if that fixes the issue, I have done this before just clutching at straws but it solved my issue at the time, not ideal but it is effective.
  8. TazDevilLooney Admin

    Message Count:
    4,205
    Likes Received:
    612
    Trophy Points:
    131
    Operating System:
    Windows 7 Ultimate X64 SP1
    I can't risk doing this as it may affect the currect programs on the machine. There has to be another way surely.

    The sfc / scanboot is working in windows. I will try the sfc /Purgecache when it finishes.
  9. Makcalable I Only Know What I Know

    Message Count:
    8,532
    Likes Received:
    1,041
    Trophy Points:
    131
    Operating System:
    Windows 7 Ultimate X64 SP1
    Ok try this Click Start then hit Run then type %Windir%\Inf and then click OK > Right Click the dfrg.inf file and then click Install. see if that works.

    If it still fails to start type these commands in Start Run box one by one;

    regsvr32 dfrgsnap.dll
    regsvr32 dfrgui.dll
  10. TazDevilLooney Admin

    Message Count:
    4,205
    Likes Received:
    612
    Trophy Points:
    131
    Operating System:
    Windows 7 Ultimate X64 SP1
    There was 2 files missing from the inf directory dfrg.inf and dfrg.pnf. I copied over from a working machine and pick install with no result.

    regsvr32 dfrgsnap.dll
    regsvr32 dfrgui.dll

    Failed with an error.

    LoadLibary ("dfrgsnap.dll") failed - The specified module could not be found.
    LoadLibary ("dfrgui.dll") failed - The specified module could not be found.

    Look like a lot of the defrag files are missing here.

    Here's the dfrg.inf file.

    [Version]
    Signature = "$Windows NT$"
    DriverVer=07/01/2001,5.1.2535.0

    [DefaultInstall]
    AddReg = DF.AddReg
    ProfileItems = DefragInstallItems

    [DefragInstallItems]
    Name = %DEFRAG_SNAPIN%
    CmdLine = 11,, dfrg.msc
    SubDir = %SystemTools_GROUP%
    WorkingDir = 11
    IconPath = 11,,DfrgRes.dll
    IconIndex = 0
    InfoTip = "@%SystemRoot%\system32\shell32.dll,-22539"
    DisplayResource="%SystemRoot%\system32\shell32.dll",22027

    [DF.AddReg]
    HKLM,"SOFTWARE\Microsoft\Dfrg","FreeSpaceErrorLevel",0x00000000,"15"
    HKLM,"SOFTWARE\Microsoft\Dfrg","PathName",0x00020000,"%systemroot%\system32"
    HKLM,"SOFTWARE\Microsoft\Dfrg","ResourceDllName",0x00020000,"%systemroot%\system32\DfrgRes.dll"
    HKLM,"SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction","Enable",0x00000000,"Y"
    HKLM,"SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction","LcnStartLocation",0x00000000,"0"
    HKLM,"SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction","LcnEndLocation",0x00000000,"0"
    HKLM,"SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction","OptimizeComplete",0x00000000,"No"
    HKLM,"SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction","OptimizeError",0x00000000,"Not Run"

    HKCR,"CLSID\{80EE4901-33A8-11d1-A213-0080C88593A5}","",0x00000000,"%DEFRAG_NTFS_CLASS%"
    HKCR,"CLSID\{80EE4901-33A8-11d1-A213-0080C88593A5}\LocalServer32","",0x00000000,"DfrgNtfs.exe"
    HKCR,"CLSID\{80EE4902-33A8-11d1-A213-0080C88593A5}","",0x00000000,"%DEFRAG_FAT_CLASS%"
    HKCR,"CLSID\{80EE4902-33A8-11d1-A213-0080C88593A5}\LocalServer32","",0x00000000,"DfrgFat.exe"

    HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\DefragPath",,0x00000010
    HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\DefragPath","",0x00020000,"%systemroot%\system32\dfrg.msc %c:"


  11. Makcalable I Only Know What I Know

    Message Count:
    8,532
    Likes Received:
    1,041
    Trophy Points:
    131
    Operating System:
    Windows 7 Ultimate X64 SP1
    Ok I found this here;

    I'm running out of ideas LOL
  12. TazDevilLooney Admin

    Message Count:
    4,205
    Likes Received:
    612
    Trophy Points:
    131
    Operating System:
    Windows 7 Ultimate X64 SP1
    Got it working.

    I was missing these and copied the files over from a working machine.

    c:\windows\inf\dfrg.inf
    c:\windows\inf\dfrg.pnf

    c:\windows\system32\dfrg.msc
    c:\windows\system32\dfrgfat.exe
    c:\windows\system32\dfrgntfs.exe
    c:\windows\system32\dfrgres.dll
    c:\windows\system32\dfrgsnap.dll
    c:\windows\system32\dfrgui.dll

    Then did......

    I have included all the files and a readme for anyone else with the same problem. XP SP3.

    Thank you Makcalable for the great indears it really helped. :dance:

    Attached Files:

  13. Makcalable I Only Know What I Know

    Message Count:
    8,532
    Likes Received:
    1,041
    Trophy Points:
    131
    Operating System:
    Windows 7 Ultimate X64 SP1
    Tenacious LOL

    Well done buddy! :wink:
Thread Status:
Not open for further replies.

Share This Page

(Users: 0, Guests: 0)