Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do you browse shared directories as well as local? (code included)

Status
Not open for further replies.

TeaAddictedGeek

Programmer
Apr 23, 1999
271
0
0
US
I'm trying to implement a browser that will show directories, including shares on the networked server.<br>
Here's the code I have so far for my directory/file browser:<br>
<br>
<br>
-----------<br>
Sub drvBrowser_Change()<br>
dirBrowser.Path = drvBrowser.Drive<br>
End Sub<br>
<br>
Sub dirBrowser_Change()<br>
flbBrowser.Path = dirBrowser.Path<br>
lblFilename = flbBrowser.Path<br>
End Sub<br>
<br>
Sub flbBrowser_Click()<br>
If Mid$(flbBrowser.Path, Len(flbBrowser.Path), 1) = "\" Then<br>
lblFilename = flbBrowser.Path & flbBrowser.FileName<br>
Else<br>
lblFilename = flbBrowser.Path & "\" & flbBrowser.FileName<br>
End If<br>
<br>
End Sub<br>
--------<br>
<br>
<br>
Can anyone help?<br>
<br>
<br>
<br>

 
What is the error?<br>
flbBrowser. Path may include "\\".<br>
Bummer. Remove the extra "\" and it will work on "shared" but nowhere else.<br>

 
Ooops.... not on my work machine... probably gave the reverse solution.<br>

 
There IS no error; the code works fine!<br>
<br>
<br>
It only browses local directories, and I wish to browse shared directories as well.<br>
<br>
<br>
<br>
Can anyone help?
 
Are they mapped? Do you have rights? I can browse the entire network with my VB apps. More info would probably help.
 
They are mapped, I have rights... I do it all the time with windows explorer.<br>
<br>
I essentially want to create my own little windows explorer application; access to files isn't necessary needed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top