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...
|