i have created a tool which picks up a file from a specific location, copies it, zips it and then puts it at other location. the user has to select the required folders from the location. is there any way through which i can create an option in the tool so that the user can see the list of available folders at that location or some way to direct the user directly to that location.. i only need the folder names.i tried it with cmd but since the location is not on my computer(its on another computer with shared property) i dunno how to access that location. any help, any hint is very much appreciated. by the way my tool is in vbscript and asp.
A:
You can use a FileSystemObject to get the contents of a directory.
set fso = CreateObject( "FileSystemObject" )
set my_folder = fso.getFolder( "C:\Example" )
Then, use the Folder object to get its contents.
set sub_folders = my_folder.subFolders
for each f in sub_folders
wscript.echo( f.name & VBNEWLINE )
next
dmb
2010-04-21 13:57:44