Asynchronous File System Browser
page 1 of 2
Published: 09 Oct 2003
Unedited - Community Contributed
Abstract
Downloadable ASP files that allow you to see all files and folders an IIS directory listed in a neat format. You can browse through the entire file system using this simple script.
by Taewook Kang
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 14676/ 23
Article Contents:

Introduction

Simply download two asp files and place them in any IIS directory. By default, the starting directory is C:\Inetpub. When you execute the index.asp in browser you can see all files and folders from your C:\Inetpub, listed in a neat format. You very well can browse through the entire file system. You can also change the location by just modifying the method, buildTree(). Modify the line, appendThings("C:\\InetPUB\\", 0);

Download
You can download the code. Unfortunately there is no live demo of this code for security reasons.  This zip file contains two ASP pages and a image folder, which contains some images. If you want to work with the index.asp, then you need to have all these images. FSOBrowser.zip

View Entire Article

User Comments

Title: Try this.   
Name: RBDurgin
Date: 2007-06-24 9:19:38 PM
Comment:
Haven't downloaded the code yet, but you would want to do something like this, after getting the selected fileName:
Response.Clear();
Response.AddHeader("Content-Disposition",
"attachment; filename=" + fileName);
Response.AddHeader("Content-Length",
file.Length.ToString());
Response.ContentType = "application/octet-stream";
Response.WriteFile(fileName);
Response.End();
Title: Awesome!   
Name: Doug
Date: 2006-11-08 5:10:41 PM
Comment:
Yes I would like to do what Kevin wants to do as well.
Title: Saving Files   
Name: Kevin
Date: 2005-07-10 12:07:29 PM
Comment:
Hello,
Great script!! One small request though, can it be modified so that whenever it finds a file you can click on the file to open it or right click it to save it? I am attempting to use this for browsing a directory of pictures.

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-04-19 1:20:20 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search