×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

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

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

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

(OP)
I'm trying to implement a browser that will show directories, including shares on the networked server.
Here's the code I have so far for my directory/file browser:


-----------
Sub drvBrowser_Change()
dirBrowser.Path = drvBrowser.Drive
End Sub

Sub dirBrowser_Change()
flbBrowser.Path = dirBrowser.Path
lblFilename = flbBrowser.Path
End Sub

Sub flbBrowser_Click()
If Mid$(flbBrowser.Path, Len(flbBrowser.Path), 1) = "\" Then
lblFilename = flbBrowser.Path & flbBrowser.FileName
Else
lblFilename = flbBrowser.Path & "\" & flbBrowser.FileName
End If

End Sub
--------


Can anyone help?



Replies continue below

Recommended for you

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

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

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

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

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

(OP)
There IS no error; the code works fine!


It only browses local directories, and I wish to browse shared directories as well.



Can anyone help?

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

Are they mapped? Do you have rights? I can browse the entire network with my VB apps. More info would probably help.

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

(OP)
They are mapped, I have rights... I do it all the time with windows explorer.

I essentially want to create my own little windows explorer application; access to files isn't necessary needed.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close