Solved

can you list files in a local directory with asp?

Posted on 2008-10-01
6
324 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
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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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 was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
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/…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

839 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