return UNC path

Posted on 2005-04-19
Medium Priority
Last Modified: 2008-01-09
How would we convert a local path to an UNC-path in VB.NET? (without using an API). TIA....
Question by:unicorn1824
LVL 34

Accepted Solution

flavo earned 252 total points
ID: 13817467
YEs i know its api -> http://searchvb.techtarget.com/vsnetATEAnswers/0,293820,sid8_gci954149_tax293674,00.html

I dont belive there is a native way..


Assisted Solution

larryo3 earned 248 total points
ID: 13832927
You can use COM Object: FileSystemObject

In the IDE click Project > Add Reference > COM tab – select Microsoft Scripting Runtime


Dim FSO As New FileSystemObject
Dim strShare As String

strShare = FSO.GetDrive("J:\").ShareName

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question