
What is network share name of local drive
One method I have employed is importing the WSH COM object into my project.
The Windows Scripting Host has quite a number of methods built into it for
enumerating drives and learning extended information about those drives.
Sorry I don't have any specific examples for you right now...
Hope this helps
Bob Sargent
Quote:
> As part of a larger application I am trying to build a
> file-locking server which will run on any
> Windows9x/ME/2000/XP server or workstation connected to a
> WindowsNT/2000/XP or Novell network. My plan is to use
> UNCs to identify files, but how do I translate drive
> letters into UNCs? For mapped remote drives it appears
> that I can simply use the ShareName property of a Drive
> object, but this doesn't work for local drives, is there
> some way that I can get access to the "Shared As/Share
> Name" of any shared local drives?