Solved

can you list files in a local directory with asp?

Posted on 2008-10-01
6
321 Views
Last Modified: 2012-06-27
hello,
i have created an .asp file that lists the files of a directory.  I would like to know if it is possible to list the contents of a local dir like My Documents od Desktop?
0
Comment
Question by:nooch44
6 Comments
 
LVL 25

Accepted Solution

by:
SStory earned 500 total points
Comment Utility
It's possible to list anything that you are willing to give permissions to.  It is not recommended, but it is possible.

You would need to give permissions to the IUSR_machinename account for that directory.

If you were to do it, then creating a virtual directory in IIS to the My Documents folder my be the better way.
0
 
LVL 16

Expert Comment

by:ThinkPaper
Comment Utility
0
 
LVL 16

Expert Comment

by:ThinkPaper
Comment Utility
gah read too quick ^_^; .. definitely agree with sstory.. it's not recommended.

however if you still want to.. you can use recursion to display from the 'parent' folder down to the child folders and it's files.
0
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

 
LVL 17

Expert Comment

by:NicksonKoh
Comment Utility
Hi there,

if you are referring to listing "My Documents" folder at the web server, then i agree with SStory. But if you are trying to list the "My Documents" folder on the client machine, then it is not possible without the use of ActiveX com.

 
0
 
LVL 25

Expert Comment

by:SStory
Comment Utility
NicksonKoh is correct in that I assumed you were wanting to list the My Documents on the server.  On the client the client would have to download a program--probably ActiveX, that would allow access to My Documents.  This is not advisable either.
0
 

Author Comment

by:nooch44
Comment Utility
since all advise against it i will not be attempting it...thanks for all the input...
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

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

8 Experts available now in Live!

Get 1:1 Help Now