Check to see if Virtual Directory exists

Discussion in 'ASP .Net' started by Pgar, Nov 15, 2004.

  1. Pgar

    Pgar Guest

    I have a page that I have the users uploading files from their local
    machines. I take these files strip off their path and redirect it to a
    new file on the web server. I have a virtual directory mapped to a
    remote machine that has files in it named for the years for items that
    the users are uploading supporting documents (i.e. 2003, 2004, etc.) I
    want to check to see if the folder for a specific year exists in the
    Virtual Directory. Is there a way to accomplish this? In short I want
    to verify that a file exists in the Virtual Directory on the web
    server.

    Thanks all,
    PGar
    Pgar, Nov 15, 2004
    #1
    1. Advertising

  2. May be this article would help you.

    http://support.microsoft.com/kb/816150/EN-US/

    Refer to the code,

    if(!Directory.Exists(strFolder))

    Regards,
    Santhana Gopalan.

    "Pgar" wrote:

    > I have a page that I have the users uploading files from their local
    > machines. I take these files strip off their path and redirect it to a
    > new file on the web server. I have a virtual directory mapped to a
    > remote machine that has files in it named for the years for items that
    > the users are uploading supporting documents (i.e. 2003, 2004, etc.) I
    > want to check to see if the folder for a specific year exists in the
    > Virtual Directory. Is there a way to accomplish this? In short I want
    > to verify that a file exists in the Virtual Directory on the web
    > server.
    >
    > Thanks all,
    > PGar
    >
    =?Utf-8?B?U2FudGhhbmEgR29wYWxhbg==?=, Nov 15, 2004
    #2
    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. Sugapablo
    Replies:
    1
    Views:
    17,179
  2. jlopes
    Replies:
    7
    Views:
    402
    jlopes
    Nov 19, 2004
  3. Jason Stacy
    Replies:
    2
    Views:
    4,641
    Roedy Green
    Apr 27, 2008
  4. Ulf Meinhardt
    Replies:
    8
    Views:
    6,094
  5. Colin Steadman

    How do I check to see if Oracle SID Exists?

    Colin Steadman, Dec 17, 2003, in forum: ASP General
    Replies:
    2
    Views:
    176
    Colin Steadman
    Dec 18, 2003
Loading...

Share This Page