G

Guest

Guest
Archived from groups: microsoft.public.windowsxp.general (More info?)

How dllcache works? What is the use of deleting files by running `Sfc
/purgecache'?

Thanks for any replies.

Brother Brock
 
G

Guest

Guest
Archived from groups: microsoft.public.windowsxp.general (More info?)

%windir%\system32\dllcache is where screwed up system files are replaced
from.

[[If the dllcache directory becomes corrupted, run SFC /PURGECACHE. ]]

/Purgecache: Purges the file cache and scans all protected system files
immediately. This command may require access to the Windows installation
source files.
Description of Windows XP and Windows Server 2003 System File Checker
(Sfc.exe)
http://support.microsoft.com/?kbid=310747

Windows File Protection and Windows
http://www.microsoft.com/whdc/winlogo/drvsign/wfp.mspx

scannow sfc (sfc.exe)
http://www.updatexp.com/scannow-sfc.html

[[...the operating system replaces the file with the correct version from
the dllcache directory or the distribution media.

After detecting the replacement of a protected file, WFP searches for the
replaced files in the following order:
1. Search the dllcache directory.
2. If the system was installed via network install, search the network
install path.
3. Search on the CD.

If the file is found in dllcache or the install source is auto-located, WFP
replaces the file without prompting the user and moves on. If the file
cannot be found, WFP displays a dialog box that prompts the user to either
insert distribution media or cancel the restore operation.

In some instances WFP may not be able to locate the correct version of a
system file in the dllcache directory. The dllcache directory might contain
an outdated version of the file, or not contain any version of the file at
all. In such a case WFP will attempt to locate the installation media. If
WFP cannot find the installation media, it will prompt the user to insert
the appropriate media. WFP will then replace the incorrect file version that
is being used by the operating system or that has been found in the dllcache
directory.]]
Windows File Protection and Windows
http://www.microsoft.com/whdc/winlogo/drvsign/wfp.mspx

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In news:%238i7QgiiFHA.3012@TK2MSFTNGP12.phx.gbl,
Brother Brock <Nobodyknows@unknown.com> hunted and pecked:
> How dllcache works? What is the use of deleting files by running `Sfc
> /purgecache'?
>
> Thanks for any replies.
>
> Brother Brock
 
G

Guest

Guest
Archived from groups: microsoft.public.windowsxp.general (More info?)

Brother Brock wrote:
> How dllcache works? What is the use of deleting files by running `Sfc
> /purgecache'?
>
> Thanks for any replies.
>
> Brother Brock
>
>
>
I remember this from MaximumPC Magazine about DLL cache

Sometimes XP keeps DLL's in cache memory even when the program that
required them is no longer running.This simple hack makes XP
automatically remove these DLL's during shutdown. In registry Navigate
to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
and create a new DWORD value called "AlwaysUnloadDll". Give it a data
value of 1. Exit the Registry and log off or reboot for new setting to
take effect.This setting may cause problems in some windows
programs,especially older 16 bit programs and may cause error
messages.If so delete the new key or give it a value of 0

The above is from Maximum PC magazine.Issue Summer 2004

I hope this is informative.