Are you asking how to ask the user for the path? The easy way would be to make the user type it in an input box, because HTML doesn't support <input type='folder'>. Of course, that's not really helpful to the user.
So your options are either...
a) Use <input type='file'> - which might be confusing to the user, but you can just return the path when you process the form.
b) Use ASP, which has some constructs for path.
c) Use VBscript - I found the following code sample for this method on another site:
<head>
<hta:application id = "folder"
/>
<title>folder</title>
<meta http-equiv = "content-script-type" content = "text/vbscript"/>
<script language = "VBScript"
type = "text/vbscript"
'<![CDATA[
Option Explicit
''=
' ============================================================================
Sub doIt()
Dim oFS : Set oFS = CreateObject( "Scripting.FileSystemObject" )
Dim oX : Set oX = document.GetElementById( "fileX" )
Dim sFSpec : sFSpec = oX.Value
Dim sPath : sPath = oFS.GetParentFolderName( sFSpec )
MsgBox sPath
End Sub
''= refreshes the HTA page, which includes re-running any Windows_Onload code
' ============================================================================
Sub reloadHTA()
location.reload True
End Sub
']]>
</script>
</head>
<body>
<hr />
<input type = "BUTTON" value = "reload" onclick = "reloadHTA">
<hr />
<input type = "FILE" id = "fileX">
<hr />
<input type = "BUTTON" value = "DOIT" onclick = "doIT">
</body>
</html>
There may be other options I'm not aware of.