If interested this method uses a recursive algorithm to list all the folders, sub folders and the files of any directory passed to it. For this sample I have the start path hard coded in the Buttons onClick event but you could set it up to get the start path from a TextBox or what ever your preference.
cut and paste the code below into an new html page to test
NOTE: you may want to format the printout to make it look nicer.
<HTML>
<HEAD>
</HEAD>
<BODY >
<FORM NAME="F1">
<INPUT TYPE="button" NAME="B1" VALUE="BUTON 1" onClick="TraverseTree('C:/inetpub/
</Form>
</BODY>
</HTML>
<SCRIPT language = "VBScript">
Dim FSO
function TraverseTree(fldr)
Dim fc
Dim fo
Dim fls
Dim F_item
Set FSO = createobject("scripting.filesystemobject"

Set fo = FSO.GetFolder(fldr)
Set fc = fo.SubFolders
Set fls = fo.Files
For Each F_item In fls
document.write F_item
document.write "<p>"
Next
For Each F_item In fc
TraverseTree(fldr + "\" + F_item.Name)
Next
end function
</SCRIPT>