Running a VBScript on my XP machine (not associated with any Web stuff) this works fine in bringing up a folder-browser and reporting the folder's title:
However what I need is the folder's _path_, and I can't seem to find a way to do this. (
The Folder object doesn't implement a 'Name' property...the FolderItem object does, and I could probably work from that, but for this project the selected folder is likely to be empty and the FolderItem(s) doesn't seem to work in that case.
Code:
Dim oAppShell 'as Shell.Application
Dim oFolder 'as Folder
Set oAppShell = CreateObject("Shell.Application")
Set oFolder = oAppShell.BrowseForFolder(0,"Test",0)
MsgBox oFolder.Title
However what I need is the folder's _path_, and I can't seem to find a way to do this. (
The Folder object doesn't implement a 'Name' property...the FolderItem object does, and I could probably work from that, but for this project the selected folder is likely to be empty and the FolderItem(s) doesn't seem to work in that case.