hi,
i am trying to pull through the filenames for images i need to display from a filesystem in ASP/IIS
basically i've managed to read the folder i want using
which brings back the filenames from the list but i want to find files that start with a specific code (they take callnumbers from the database) but the next part of the filename is not specifically set as a standard...
is there a way to search the folder for specific part filenames rather than scrolling through and checking, also is it possible to do a quick check to see if files exist in the folder using * clauses... like
daveJam
even my shrink says its all your f#@/ing fault
i am trying to pull through the filenames for images i need to display from a filesystem in ASP/IIS
basically i've managed to read the folder i want using
Code:
Whichfolder="c:\company shared folders\technicians pictures\"
Dim fs, f, f1, fc
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFolder(Whichfolder)
Set fc = f.files
For Each f1 in fc
Response.write (f1.name & "<BR>")
Next
which brings back the filenames from the list but i want to find files that start with a specific code (they take callnumbers from the database) but the next part of the filename is not specifically set as a standard...
is there a way to search the folder for specific part filenames rather than scrolling through and checking, also is it possible to do a quick check to see if files exist in the folder using * clauses... like
Code:
If fs.FileExists("c:\company shared folders\technicians pictures\126597*.*") Then
response.write "yes"
Else
response.write "no"
End If
daveJam
even my shrink says its all your f#@/ing fault