Associating Interpreters with Applications (Script Mapping)

ID: Q147856


The information in this article applies to:


SUMMARY

The Microsoft Internet Information Server supports file name mapping. It maps file name extensions to the proper program so that it can run files with those extensions. Some extensions are pre-installed and others are manually added.


MORE INFORMATION

File names with the extensions of .bat, .cmd and .idc are pre-installed. Other extensions must be added in the following manner:

WARNING: Using Registry Editor incorrectly can cause serious, system-wide problems that may require you to reinstall Windows NT to correct them. Microsoft cannot guarantee that any problems resulting from the use of Registry Editor can be solved. Use this tool at your own risk.

  1. Start Registry Editor (REGEDT32.EXE) and locate the following Registry subkey in the HKEY_LOCAL_MACHINE subtree:
    
       \SYSTEM\CurrentControlSet\Services\W3SVC\Parameters\Script Map
     


  2. From the Edit menu, select Add Value.


  3. Enter the following:
    
          Value Name: <Extension>
          Data Type:  REG_SZ
          String:     <Full path and File name>?
     
    NOTE: Make sure you add the "?" (without quotes) at the end of the URL, so that the Web browser does not attempt to download the script file. For additional information regarding the ?, please see the following article in the Microsoft Knowledge Base:
    Q147708 : IIS Scripts Request To Save the File Instead of Executing


  4. Click OK and quit the Registry Editor.


  5. Shut down and restart Windows NT.


Additional query words: prodiis


Keywords          : kbnetwork iisscript 
Version           : 1.0
Platform          : WINDOWS 
Issue type        : 

Last Reviewed: May 4, 1999