CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2010
    Posts
    1

    Question how to browse folder on remote pc

    i m connected on LAN with another pc
    now i want to browse a folder on that pc. how can i do this? i have used folderbrowsedialog but i can only browse folders in my own pc.
    also it displays the complete hierarchy of folders which dont want. please tell me hoe can i achieve my goal

  2. #2
    Join Date
    Jun 2008
    Posts
    2,477

    Re: how to browse folder on remote pc

    UNC Path...

    As for this

    it displays the complete hierarchy of folders which dont want
    I don't know what you mean. How about telling us what you are trying to achieve here?

  3. #3
    Join Date
    Sep 2010
    Posts
    23

    Re: how to browse folder on remote pc

    The folderbrowserdialog is the correct choice.

    I have one, in my application, and i can browse other computers over the LAN. (windows 7)
    If the network option is not there, you might be able to get onto the network with your
    dialog, by setting the root folder, or selected path.

    FolderBrowserDialog fbd = new FolderBrowserDialog();
    //fbd.RootFolder = Environment.SpecialFolder.NetworkShortcuts;
    //fbd.SelectedPath = @"\\computername\folder";
    fbd.ShowDialog();

  4. #4
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: how to browse folder on remote pc

    Quote Originally Posted by fyp View Post
    i m connected on LAN with another pc
    now i want to browse a folder on that pc. how can i do this?
    Are the folders shared out on the other machine? Can you view them in explorer?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured