Solved

IIS / .asp query (file lists)

Posted on 1998-11-19
2
127 Views
Last Modified: 2013-12-25
Ok, withOUT resorting to CGI's, I wish to do the following :
I have a directory on my server which I do NOT allow
people to get directory listings of (currently).
What I want on my index.html is a small .asp which will :

Pull a list of the files (NOT dir's) in the directory
Produce a list of the files (with links to those files)

Is this possible with .asps?
If so, can someone post a URL to get me started?
0
Comment
Question by:ptruman
2 Comments
 
LVL 1

Accepted Solution

by:
rajgn earned 50 total points
Comment Utility
Existing filesystem object on IIS doesn't have capability to read the directories. Hence download and install 'Windows Scripting Host from Microsoft' will expand the properties and methods of the filesystem object to include CopyFile, CopyFolder, CreateTextFile, DeleteFile, DeleteFolder, DriveExists, FileExists, FolderExists, GetDrive, GetDriveName,
GetFile, GetFolder, GetTempName, MoveFile, MoveFolder and more.

Once you install it, then create an instance of filesystem object and call appropriate methods to get the directory listing.

the above said component can be downloaded at :

http://msdn.microsoft.com/scripting/default.htm?/scripting/windowshost/

Some other third party free components are also available for file management. You can find some at:

http://www.activeserverpages.com/components/freefile.asp
0
 
LVL 1

Author Comment

by:ptruman
Comment Utility
Useful, although I found this about 10 mins after I posted the question :)

0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
The viewer will learn how to count occurrences of each item in an array.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now