try using "./" to indicate current path....
Also, since it's using a system reference for the call here you may be
looking in c:\windows instead of your App dir, which is why you may need a
MapPath() or use absolute pathing to ensure you are starting in the current
app dir.
--
Curt Christianson
Owner/Lead Developer, DF-Software
Site:
http://www.Darkfalz.com
Blog:
http://blog.Darkfalz.com
"Andrew Wied" <> wrote in message
news:E88B0E83-B45A-4212-A15E-...
> 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