Results 1 to 3 of 3

Thread: UNC - Retrieving

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    68

    UNC - Retrieving

    Hi All,

    Has anyone had got a code sample I can use to retrieve the UNC of a specified file or folder.

    Basicly I want the user to be able to browse to a file using the common dialog, and then from there I need to get the files UNC so that it can be accessed from other pc's without them all having to have the same mapped drives etc...
    THE DOUGSTER!!!!!!


    *-MCSD-*

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3
    Fanatic Member rudvs2's Avatar
    Join Date
    Mar 2001
    Location
    NZ
    Posts
    935
    Vb handles UNC paths

    INstead of using the common dialogue control that ships with VB instead use API to get the windows browse for folders box. This allows you to browse the network and will return a valid unc path of the selected folder

    I am not at work at the mo so i dont have access to the exact web addy

    but there is an example on

    http://www.mvps.org/vbnet/code/browse/browsenetwork.htm

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