|Well, there's always Scripting.FileSystemObject's GetFileName, but that only returns everything after the final '/' or '\'. |
If you're expecting it to be a real file, you could always ask the server in question. Follow the example and comments here: Stackoverflow.com, but use HEAD instead of GET. HEAD says you only want the metadata, and not the actual file. Since you're not actually downloading the data, you can drop the ADODB.Stream object from the example.
How To Ask Questions The Smart Way
message edited by Razor2.3