Article ID: 246068 - View products that this article applies to.
This article was previously published under Q246068
This article describes how to create a Windows Scripting Host (WSH) script to list the default Multipurpose Internet Mail Extensions (MIME) Map settings for a server running Microsoft Internet Information Services (IIS).
Multipurpose Internet Mail Extensions (MIME) is a way of configuring browsers or mail clients to view files that are in multiple formats based on a MIME Type. MIME Mapping is a process by which IIS maps files by their extensions to a particular MIME Type. For example, a file with a .htm extension has a MIME Type of "text/html," whereas a file with a .gif extension has a MIME Type of "image/gif."
When a request is made by a client for a particular file, IIS uses the MIME Map to determine the correct MIME Type that the client will be receiving. IIS contains a large list of default MIME Types to use, and returns a MIME type of "application/octet-stream" for any file extension that is not explicitly mapped.
When Web administrators create or store new file formats with extensions that may be undefined, the following WSH code may help determine the contents of the default MIME Types list by displaying a sorted list of all current MIME Type definitions.
Listing the Default MIME MapCopy the following WSH code and save it as Mimemaps.vbs:
Run the WSH script from a command prompt using the following syntax:
CSCRIPT.EXE C:\MIMEMAPS.VBS | MOREThe output should be similar to the following:
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.
https://partner.microsoft.com/global/30000104For more information about the support options that are available and about how to contact Microsoft, visit the following Microsoft Web site:
For more information on Microsoft's scripting technologies, see the Microsoft Developer Network web site at the following URL:
Article ID: 246068 - Last Review: August 8, 2007 - Revision: 3.3
Contact us for more help
Connect with Answer Desk for expert help.