I want to be able to check and find files if they exist.
The only problem is i don't know specifically what the file name will be. I know that a certain number will exist in the file name (e.g. 8056) but there will be other letters and numbers following that will vary.
For example there could be file names called C8056S.CPX, C8056LG1.CPX, C8056LG2.CPX, C8056LG3.CPX, C8056LG4.CPX....etc
Is there any way that i can check for all these using something of the sorts of a wildcard search (E.g *8056*.CPX)??
Hmm... I'm not aware of any asp objects that would allow you to do this. But I have to ask.. if you know a certain amount about the filename there must be some logic to the rest of the filename?? Of course I'm assuming they are being generated by another application....
Set fs = Server.CreateObject( "Scripting.FileSystemObject")
Set folder = fs.Getfolder("c:\My Documents\TestSite\test\fso-object")
FOR EACH file IN folder.Files
<br> <a href ="<%=file.Name%>"><%=file.Name%></a>