how to detect folder exist or not ?

Discussion in 'ASP .Net' started by Tee, Jun 16, 2004.

  1. Tee

    Tee Guest

    Hi,

    question as subject, can we detect a folder existence on the server ...

    and another question, how to know current application folder ?

    thanks,
    Tee
    Tee, Jun 16, 2004
    #1
    1. Advertising

  2. Use the Directory.Exists method.
    Here's more info:
    http://msdn.microsoft.com/library/d...ml/frlrfsystemiodirectoryclassexiststopic.asp

    For the current folder you may be able to use Server.MapPath.
    Here's more info on that:
    http://msdn.microsoft.com/library/d...stemwebhttpserverutilityclassmappathtopic.asp

    --
    I hope this helps,
    Steve C. Orr, MCSD, MVP
    http://Steve.Orr.net


    "Tee" <> wrote in message
    news:OgaOs$%...
    > Hi,
    >
    > question as subject, can we detect a folder existence on the server ...
    >
    > and another question, how to know current application folder ?
    >
    > thanks,
    > Tee
    >
    >
    Steve C. Orr [MVP, MCSD], Jun 16, 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. Replies:
    5
    Views:
    609
  2. Y.S.
    Replies:
    3
    Views:
    976
    strajan
    Sep 17, 2003
  3. LT
    Replies:
    7
    Views:
    2,071
    Phlip
    Jul 25, 2004
  4. Agnes

    Detect the files exist or not

    Agnes, Oct 16, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    315
    Steve C. Orr [MVP, MCSD]
    Oct 16, 2006
  5. Markus Mohr
    Replies:
    7
    Views:
    226
    Thomas 'PointedEars' Lahn
    Nov 28, 2003
Loading...

Share This Page