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

Discussion in 'ASP .Net' started by VB Programmer, Oct 16, 2003.

  1. 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!
     
    VB Programmer, Oct 16, 2003
    #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. =?Utf-8?B?UnVkeQ==?=

    Sub Dir, Virtual dir, what do I use?

    =?Utf-8?B?UnVkeQ==?=, Jun 12, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    448
    =?Utf-8?B?UnVkeQ==?=
    Jun 12, 2005
  2. nguyen220
    Replies:
    1
    Views:
    331
    nguyen220
    Apr 20, 2008
  3. Ed
    Replies:
    4
    Views:
    167
    joker
    Aug 4, 2004
  4. Matthew Denner
    Replies:
    1
    Views:
    218
  5. Kga Agk
    Replies:
    2
    Views:
    168
    Kga Agk
    Jun 29, 2009
Loading...

Share This Page