Re: Interesting one : Retrieve a list of files within a web folder

From: Brian Hoops (brian_at_hoops.sytes.net.nospam)
Date: 10/22/04


Date: Fri, 22 Oct 2004 18:11:50 -0500

use
 server.mappath("images/photos/")

"John" <a@b.com> wrote in message
news:%23sDCgkIuEHA.3016@TK2MSFTNGP12.phx.gbl...
> Hi all,
>
> I haven't a clue where to begin here (or more to the point - if it's even
> possible).
>
> I need to read the names of all the files inside a folder off my web site.
> The catch here is that I don't know the absolute path here
> (C:\inetpub\whatever\whatever\etc...) as it could be on any drive at my
> ISP.
>
> Is there a way to retrieve a list of these files by somehow using the
> relative path (../Images/photos/*)?
>
> Regards
> John.
>
>



Relevant Pages

  • how do I code a user created subdirectory?
    ... I have a web site that users can register on and then create a subdirectory ... For example, John comes to the site, and wants to register. ... actually creating the folder, but controling the permissions. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Confusion over SP versions
    ... You need to go to that folder and run ... >> SQL Server 2000. ...
    (microsoft.public.sqlserver.server)
  • Secure Files
    ... Is it a t all possible to secure a folder or a file in a shared directory so ... Regards ... John ...
    (microsoft.public.windowsxp.security_admin)
  • File Security
    ... Is it a t all possible to secure a folder or a file in a shared directory so ... Regards ... John ...
    (microsoft.public.windowsxp.security_admin)
  • Re: default folders
    ... Folder created, this then becomes the default folder for all Pictures, ... John ... > Regards. ...
    (microsoft.public.windowsxp.newusers)