Solved

can you list files in a local directory with asp?

Posted on 2008-10-01
6
322 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
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 tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

863 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

25 Experts available now in Live!

Get 1:1 Help Now