Computing.Net > Forums > Web Development > Browse Folder Dialogue box in HTML

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Browse Folder Dialogue box in HTML

Reply to Message Icon

Name: arun_s010
Date: May 8, 2007 at 12:45:16 Pacific
OS: Windows
CPU/Ram: 1GB
Product: DELL
Comment:

hi,

i have written a code to launch Browse Folder dialogue box.


<HTML>

<HEAD>


</HEAD>

<BODY>

<SCRIPT LANGUAGE="VBScript">

Option Explicit


Sub Browse_OnClick

On Error Resume Next

Dim WShell

Dim sItem

Dim sPath

Set WShell = CreateObject("Shell.Application")

If IsObject(WShell) Then

MsgBox "Entry1"

End If

Set sItem = WShell.BrowseForFolder(&H0, "", &H0001,17)

If IsObject(sItem) Then

MsgBox "Entry2"

End If

If Err = 0 Then

sPath = sItem.ParentFolder.ParseName(sItem.Title).Path

Else

MsgBox "Error in Selecting Folder/File. Error Number " & Err

End If

Set WinShell = Nothing

Set sItem = Nothing

document.Just.WMPath.value = sPath


End Sub

</SCRIPT>
<FORM Name="Just">

<INPUT Type="Text" Name="WMPath" SIze=25>



<INPUT Type="Button" Name="Browse" value ="Browse"SIze=25>

In this code i am not able create IE object to get value of slected folder from BrowseForFolder . its giving error number 70, please help me

</FORM>
</BODY>
</HTML>



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Browse Folder Dialogue box in HTML

magazine-style sidebars in HTML? www.computing.net/answers/webdevel/magazinestyle-sidebars-in-html/2368.html

Date pop-up box in ASP.NET www.computing.net/answers/webdevel/date-popup-box-in-aspnet/833.html

Grammer in HTML www.computing.net/answers/webdevel/grammer-in-html/2195.html