Magazine |
| | Community |
| | Workshop |
| | Tools & Samples |
| | Training |
| | Site Info |
|
|
||||||||
|
The Cache Container Tool (Cdcache.exe) is an AutoRun executable file that allows content outside of the cache to be associated with a specified URL, which can be referenced by Microsoft® Internet Explorer 4.0. This tool allows you to assign a URL that will reference content from another directory or CD-ROM.
The tool creates a cache container in the Internet Explorer persistent URL cache. When a user enters the URL, the browser looks for the resource in the location specified by the cache container.
If an earlier version of Internet Explorer is installed on the computer, a message appears, notifying the user that Internet Explorer 4.0 is required, unless the /NoIE4Msg or /Silent command-line option is used.
The tool can be found in the \bin directory of the Internet Client SDK.
Use the following steps to install a cache container that references a CD-ROM.
[autorun] open=cdcache.exe icon=cdcache.exe,1
If you want to use one of the Command-Line Options, add it to the open= line in the Autorun.inf file. The following example would install the cache container without displaying any user interface.
[autorun] open=cdcache.exe /Silent icon=cdcache.exe,1
[Add.CacheContainer] <Friendly Name>=<INF Section Name>
The friendly name can be either the name of the company or the name of the product for which the cache container is being created. INF Section Name is the label you will use in the .inf file to define the details of your cache container.
The following example shows an entry for two cache containers: one for Awesome Computers and one for Trey Research.
[Add.CacheContainer] Awesome Computers=AwesomeComp Trey Research=TreyResearch
[INF Section Name] CachePrefix=<string> CacheRoot=<relative path to the data> KBCacheLimit=<numerical amount in KB> AutoDelete=<Yes|No> IncludeSubDirs=<Yes|No> VolumeTitle=<string>
CachePrefix | Determines the URL pattern that the cache container will provide data for. For the cache container to work properly, the pattern cannot end with a backslash (/). For example, the URL pattern http://www.awesome_computers.com/ is incorrect. It must be http://www.awesome_computers.com to work properly. The same is true of patterns that include directories. For example, the URL pattern http://www.trey_research.com/awards/ must be set as http://www.trey_research.com/awards. |
CacheRoot | Contains the relative path to the data provided by the cache container. The following replaceable parameters can be used for this entry:
|
KBCacheLimit | Contains the maximum number of kilobytes of data that can be stored in the user's local cache. |
AutoDelete | Determines if the cache container data residing in the user's local cache should be purged after an interval (predetermined by Microsoft Internet Explorer 4.0) of non-use. |
IncludeSubDirs | Specifies whether directories residing below the main CacheRoot= should be used to supply cache container data. Without this flag, only resources in the immediate CacheRoot= directory will be used to supply cache container data. |
VolumeTitle | Contains the title or friendly name of the CD-ROM that the container was created for. Currently required for all cache containers. Cache containers setup for a hard drive must include a VolumeTitle set to any string and the hard drive itself must have a label. |
The following example shows entries for two cache container detail sections.
[AwesomeComp] CachePrefix=http://www.awesome_computers.com CacheRoot=%EXE_DRIVE%\data\http\ KBCacheLimit=1000 AutoDelete=Yes IncludeSubDirs=Yes VolumeTitle=Anything [TreyResearch] CachePrefix=http://www.trey_research.com/awards CacheRoot=%EXE_DRIVE%\data\http\awards\ KBCacheLimit=500 AutoDelete=Yes IncludeSubDirs=Yes VolumeTitle=TreyResearch
The Cdcache.exe tool supports the following command-line options:
/NoIE4Msg | Disables the message that informs the user that Microsoft Internet Explorer 4.0 is required. |
/Silent | Installs all cache containers in the Autorun.inf file without displaying any user interface. This option will also cause it to fail silently. |
/Remove | Uninstalls all the cache containers listed in the Autorun.inf file. |
/Uninstall | Same as /Remove. |
Does this content meet your programming needs? Write us!
© 1998 Microsoft Corporation. All rights reserved. Terms of use.