Question: Doing a 'dir' on a subdirectory in my web root

V

VB Programmer

My web root is in C:\Inetpub\wwwroot\MyDir

I have a graphics directory in C:\Inetpub\wwwroot\MyDir\MyGraphics

I want do do a 'Dir' to see 1st if the directory exists, then 2nd to see if
a file exists. How can I do this so I dont have to put in the full path???

This doesn't seem to work "Dir("MyGraphics", FileAttribute.Directory)".

Thanks!
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,263
Messages
2,571,064
Members
48,769
Latest member
Clifft

Latest Threads

Top