Browse the Web Hosts File System and Display Selected Files Either as Text or HTML

Category:
ASP, HTML and XML
Type:
Applications
Difficulty:
Advanced
Author:
Anonymous

Version Compatibility: ASP

More information:
This ASP page shows you how to display drives, subdirectories, and files on the host machine in the browser. When you select a file, it is opened as text (if possible) and displayed in the browser. If the file has an extension indicating it is an web file (e.g., .htm, .html, .asp) you have the option of opening it as text or rendering it in the browser. In addition, if the selected file has an .asp or .vbs extension and you choose to open it as text, line numbers are optionally displayed. This feature is particularly useful for debugging purposes.

Intranet authors and administrators should find a page such as this to be a particularly helpful utility.


Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.

Download aspbrowsedir.zip