In this download...
http://www.jsware.net/jsware/scripts.php3#classpk
... is a file named findfol.vbs. It uses BrowseForFolder
with files displayed and returns both the path and whether
the selection was a file or folder. I'm not sure about
compatibility, though. It works fine on Win98 but I seem
to remember that the file display option in BrowseForFolder
may have been discontinued in XP. (Maybe that's
why Joe Earnest's script didn't work?)
There are also other problems with BrowseForFolder.
If a system "namespace" is selected - like Control Panel -
it doesn't return a path. Also, Shell.Application is an
undependable way to deal with the file system altogether.
The files it "sees" depends on both the Windows version
and the display settings, because Shell.Application is really
meant to deal with the display of objects in Explorer.