Check Existence of File using VBScript in ASP page

Discussion in 'ASP General' started by Scott, Sep 22, 2005.

  1. Scott

    Scott Guest

    Is there a way to check if a file exist using VBScript in an ASP page.
    So the code might go something like this:

    If Exists("C:\Junk\1.txt") then
    Do something
    Else
    Do something else
    End If

    Thx,
    Scott Buerkley

    --
    The Source For Premium Newsgroup Access
    Great Speed, Great Retention
    1 GB/Day for only $8.95
     
    Scott, Sep 22, 2005
    #1
    1. Advertising

  2. Scott

    Slim Guest

    Slim, Sep 23, 2005
    #2
    1. Advertising

  3. Scott

    Scott Guest

    On Fri, 23 Sep 2005 08:33:36 +0800, "Slim" <me@home> wrote:

    Thank You!! This worked.

    Thx,
    Scott Buerkley


    >
    >"Scott" <> wrote in message
    >news:...
    >> Is there a way to check if a file exist using VBScript in an ASP page.
    >> So the code might go something like this:
    >>
    >> If Exists("C:\Junk\1.txt") then
    >> Do something
    >> Else
    >> Do something else
    >> End If
    >>
    >> Thx,
    >> Scott Buerkley

    >
    >
    >http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/jsmthfileexists.asp
    >
    >
    >
    >>
    >> --
    >> The Source For Premium Newsgroup Access
    >> Great Speed, Great Retention
    >> 1 GB/Day for only $8.95

    >
    >


    --
    The Source For Premium Newsgroup Access
    Great Speed, Great Retention
    1 GB/Day for only $8.95
     
    Scott, Sep 23, 2005
    #3
    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:
    0
    Views:
    312
  2. puzzlecracker
    Replies:
    4
    Views:
    276
    Jim Langston
    Oct 31, 2005
  3. John
    Replies:
    4
    Views:
    452
  4. Alf P. Steinbach

    File existence check with partial filename

    Alf P. Steinbach, Mar 15, 2010, in forum: Python
    Replies:
    4
    Views:
    440
    Steven Howe
    Mar 15, 2010
  5. Replies:
    7
    Views:
    277
    John Bokma
    Sep 1, 2005
Loading...

Share This Page