Results 1 to 2 of 2

Thread: Check if file exists?

  1. #1

    Thread Starter
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772

    Check if file exists?

    How can I check if a file exists? Something like

    Code:
    If (file doesn't exit) Then
      Response.Write "Can't find that file"
    Else
      ' Proceed to download file
    End If
    Alcohol & calculus don't mix.
    Never drink & derive.

  2. #2
    Hyperactive Member
    Join Date
    Apr 2001
    Posts
    315
    If CreateObject("Scripting.FileSystemObject").FileExists(strFileSpec) then

    OR if ASP
    If Server.CreateObject("Scripting.FileSystemObject").FileExists(strFileSpec) then

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width