
January 2nd, 2003, 04:37 PM
|
|
Contributing User
|
|
Join Date: Sep 2001
Location: Langley, BC Canada
Posts: 35
Time spent in forums: 42 m 29 sec
Reputation Power: 12
|
|
|
I need to find a file but only have partial name
I'm looking for images in my asp page.
I know the path and first and last part of the filename.
Example filename: A01-30420.jpg
I have the A01- and the .jpeg. The ##### portion could be anything, but always numeric (sofar).
The A01 is unique, i.e. there will only be one file of A01-#####.jpg
I'm using fileExists object to confirm a file exists when I have the full filename but havn't been able to figure out how to get the full filename when I only have a partial.
I could rename the files, i.e. drop the -##### but I'd have to do that everytime I get new ones so I'd like to work with the original filename if at all possible.
Thanks in advance
Heinz
|