Check if file starting with a pattern exists or no
Hi
I want to check if a file beginning with a fixed pattern, say, "PROGRAM" exists or not. So all files like "PROGRAM", "PROGRAM123", "PROGRAM.xls" and "PROGRAM 15-May-2006.xls" should pass this check. I don't know how this can be done. Please help !
The way I shall use it is
Set fso = CreateObject("Scripting.FileSystemObject")
If Not fso.FileExists(filename) Then
' do something
End If
What shoould I append with filename so that all such filenames pass above written test ?
|