Solved

can you list files in a local directory with asp?

Posted on 2008-10-01
6
326 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
[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
6 Comments
 
LVL 25

Accepted Solution

by:
SStory earned 500 total points
ID: 22617947
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
ID: 22618567
0
 
LVL 16

Expert Comment

by:ThinkPaper
ID: 22618600
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 17

Expert Comment

by:NicksonKoh
ID: 22620601
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
ID: 22624324
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
ID: 22626400
since all advise against it i will not be attempting it...thanks for all the input...
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

729 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