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
User Profile
Collapse
-
How can I check if file exists?
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"...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 %>
No activity results to display
Show More
Leave a comment: