Re: Relative Paths

Discussion in 'ASP .Net' started by terrorix, May 26, 2004.

  1. terrorix

    terrorix Guest

    Andrew Wied wrote:

    > Hello:
    > You know, I really think this should be easy, but I cannot, for the life of me, seem to get this to work. Basically, I am looking to get a list of the file in a subdirectory of the current page's directory.
    >
    > In my application, I have a subdirectory "newXML". I want to get a list of the files in that directory.
    > I have it working just fine with absolute paths, but I want it to work on relative paths.
    >
    > A snippet of my code: Dim files As String() = d.GetFiles("????????????", "*")
    >
    > I'm not sure WHAT to put into the ?????, as I've tried everything under the sun that I can think of.
    >
    > Any suggestions?
    >
    > Thanks,
    > Andrew Wied


    Use Server.MapPath("/pub/files") in GetFiles...
    terrorix, May 26, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kathy Burke
    Replies:
    0
    Views:
    520
    Kathy Burke
    Nov 14, 2003
  2. Curt_C [MVP]

    Re: Relative Paths

    Curt_C [MVP], May 25, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    357
    =?Utf-8?B?QW5kcmV3IFdpZWQ=?=
    May 26, 2004
  3. MattC
    Replies:
    1
    Views:
    449
    Janaka
    Aug 24, 2004
  4. Noah
    Replies:
    5
    Views:
    780
  5. Ohad Lutzky

    Paths, gentleman, paths

    Ohad Lutzky, Nov 6, 2006, in forum: Ruby
    Replies:
    2
    Views:
    192
    David Vallner
    Nov 7, 2006
Loading...

Share This Page