User Profile

Collapse

Profile Sidebar

Collapse
James Wood
James Wood
Last Activity: May 7 '11, 11:56 AM
Joined: May 3 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • James Wood
    replied to How can I check if file exists?
    I couldn't figure out how to include the variable ("ID") in the filename but a friend figured it out for me by creating a new filename from the path, the ID, and the extension.

    Thanks for your post
    See more | Go to post

    Leave a comment:


  • James Wood
    started a topic How can I check if file exists?

    How can I check if file exists?

    Code:
    <%
    Dim objFSO
      Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
    If objFSO.FileExists ("yourfile.txt") Then
      Response.Write "File exists"
    Else
      Response.Write "File does not exist"
    End If
    %>
    I am trying to modify this code to check for a file using a variable file name so instead of "yourfile.t xt" I am looking for "../Audio_Files/("ID").mp3"...
    See more | Go to post
    Last edited by TheSmileyCoder; May 3 '11, 12:52 PM. Reason: Added code tags
No activity results to display
Show More
Working...