?
Solved

IIS / .asp query (file lists)

Posted on 1998-11-19
2
Medium Priority
?
134 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
rajgn earned 150 total points
ID: 1829656
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
ID: 1829657
Useful, although I found this about 10 mins after I posted the question :)

0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
Suggested Courses

777 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