Microsoft KB Archive/182711

= IE 3.0x Fails to Start Batch File Served by IIS =

Article ID: 182711

Article Last Modified on 6/23/2005

-

APPLIES TO


 * Microsoft Internet Explorer 3.03 for Windows NT 3.51
 * Microsoft Internet Explorer 3.0
 * Microsoft Internet Explorer 3.1
 * Microsoft Internet Explorer 3.02
 * Microsoft Internet Explorer 3.0
 * Microsoft Internet Information Server 1.0
 * Microsoft Internet Information Server 2.0
 * Microsoft Internet Information Server 3.0

-



This article was previously published under Q182711



We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 6.0 running on Microsoft Windows Server 2003. IIS 6.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site:

http://www.microsoft.com/technet/security/prodtech/IIS.mspx



IMPORTANT: This article contains information about editing the registry. Before you edit the registry, make sure you understand how to restore it if a problem occurs. For information about how to do this, view the "Restoring the Registry" Help topic in Regedit.exe or the "Restoring a Registry Key" Help topic in Regedt32.exe.



SYMPTOMS
If you try to access a batch file held on a WWW server using Internet Explorer 3.0 running on Windows for Workgroups 3.11 and previous releases or Windows NT 3.51, the file is displayed as plain text.

Neither Internet Explorer 3.0 nor Internet Explorer 4.0 on Windows 95 or Windows NT 4.0 exhibits this behavior.



CAUSE
By default, any file sent by the WWW server on Internet Information Server that has an unrecognized MIME type is returned to the client as a blank MIME type.

With Internet Explorer 3.0 and Internet Explorer 4.0 on Windows 95 and Windows NT 4.0, the file system association is used, if one exists.



RESOLUTION
To resolve this problem, you must make changes to both the server and the client. The server modification is to create a MIME type for the .bat extension. The client modification is to register the appropriate action for this MIME type. Both of these changes are detailed below.

Internet Information Server
Under Internet Information Server, add the MIME entry using the Registry Editor.

WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.

For information about how to edit the registry, view the "Changing Keys And Values" Help topic in Registry Editor (Regedit.exe) or the "Add and Delete Information in the Registry" and "Edit Registry Data" Help topics in Regedt32.exe. Note that you should back up the registry before you edit it.

 Run the Registry Editor (Regedt32.exe). Go to the following key:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\InetInfo\Parameters\MimeMap To add an entry, open the MimeMap key and choose Edit Value or Add Value.  The MIME information must be placed in the Value Name box. The data type for the entry should be set to REG_SZ, and the string field should be left blank. The following is an example of a MIME entry:

Value Name: application/batch,bat,,0 Data Type: REG_SZ Data:      (This should be blank)  Restart the WWW service for this setting to take effect.</li></ol>

Internet Explorer 3.0
Internet Explorer 3.0 clients must have the new MIME type defined as detailed below:

<ol> With Internet Explorer running, on the View menu, click Options, click the Programs tab, and then click the File Types tab.</li> In the Registered File Types box, click Add.</li>  Configure the file type as follows:

<pre class="fixed_text">Description:       application batch file MIME Type:         application/batch Suffixes           .bat Encoding:          Text Helper Application: command.com /c %s </li> Click OK until all dialog boxes are closed.</li></ol>

Further information on adding MIME types can be found in the following Microsoft Knowledge Base articles:

142558 : Adding Mime Types to Internet Information Server

170802 : Internet Explorer Prompts to Download Files

Additional query words: ie3 ie2 batch bat

Keywords: kbprb KB182711

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.