Programmer1974
Programmer
Hello all!
I'm writting an HTML document where part of the functionality lets the user browse for a folder, and in another place to browse for a file. After searching through many threads, I've found that the following code works for the folders:
Set objFolder = objShell.BrowseForFolder(0, "Select a folder:", &H0)
and the following code works for files:
<input type="file" name="myFile">
However, these two methods display different dialogue boxes, and I'm trying to achive continuity. The BrowseForFolder function does not work when selecting files, and I can't find any HTML code to return a folder. Does anyone know how to do either of these two things, or yet a third option that will achive both? I am espescially interested in the vbScript method because I will be able to use it in non-html programs.
Thanks all for your help.
I'm writting an HTML document where part of the functionality lets the user browse for a folder, and in another place to browse for a file. After searching through many threads, I've found that the following code works for the folders:
Set objFolder = objShell.BrowseForFolder(0, "Select a folder:", &H0)
and the following code works for files:
<input type="file" name="myFile">
However, these two methods display different dialogue boxes, and I'm trying to achive continuity. The BrowseForFolder function does not work when selecting files, and I can't find any HTML code to return a folder. Does anyone know how to do either of these two things, or yet a third option that will achive both? I am espescially interested in the vbScript method because I will be able to use it in non-html programs.
Thanks all for your help.