473,796 Members | 2,708 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Converting from UNC to local path

Hi

Can anyone tell me how to convert a UNC path to a local path (if such
one exists) ?

For example, let's take this UNC:

\\LOCALPC\Share d\Documents

It will be the same as D:\Shared\Docum ents
Or this example:

\\REMOTEPC\Shar ed\Documents

It will be the same as S:\Shared\Docum ents, which is a mapped network
drive.

So how can I find the equivalen local path/mapping?

TIA,

Ken

Jul 17 '05 #1
1 4116

<Ken Sørensen> wrote in message
news:3f******** *******@news.pr emium-news.de...
Hi

Can anyone tell me how to convert a UNC path to a local path (if such
one exists) ?

For example, let's take this UNC:

\\LOCALPC\Share d\Documents

It will be the same as D:\Shared\Docum ents
Or this example:

\\REMOTEPC\Shar ed\Documents

It will be the same as S:\Shared\Docum ents, which is a mapped network
drive.

So how can I find the equivalen local path/mapping?

TIA,

Ken

e-mail me your e-mail address. The API's are rather large for posting here..
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2024
by: Mike | last post by:
Hi guys, I need to convertvirtual (http:// ...) path to physical (c:\...) in the desktop application. Any ideas? Thansks, Mike
4
11881
by: Elie Grouchko | last post by:
Hi All 1. I need to convert the local-time of the server on which I run my website to UTC and I don't want to rely on the server local time and timezone (i.e. I don't want to hardcode the timezone information), is there a generic way to do this? 2. Is there a general for converting time between timezones in ASP? Many thanks
1
1603
by: Salim | last post by:
I get a UNC path input from user. I need to map local path to this UNC path and vice versa Is there any simple way to do it in .NET?
1
8194
by: Anne | last post by:
We have created a web service with the following URL: "http://localhost/test/testWS.asmx" In our C# program, we need to know the local path (IIS) corresponding to this URL. It should be something like "c:\Program File\web" in our case. How can we retrieve the local path, knowing the URL, in a C# program ? Which method shall be used ?
2
5001
by: Mookie | last post by:
Hello... I am new to ADSI and was looking for some assistance... I am writing an application that will look to confirm IIS directories and their settings. I've been able to identify all the IIS directories but cannot get information on their local path.
2
1831
by: Leonardo | last post by:
Hi guys, I'm confused when creating a virtual directory on my test environment. 1. If I create the virtual directory manually, it lets me modify the "Local Path", by using either the Browse button or the textbox. 2. When I create an ASP.NET aplication that option is unavailable. How was the Duwamish 7.0 project built? I need to change the virtual directory name
3
1281
by: Tim Marsden | last post by:
Hi, Given a file Path, for example "C:\Data\Samples". How do I convert this to "\\Server\Share\Data\Samples" The original "C:" , "F:" etc may be local or a mapped network drive. I am trying to ensure the path (stored as sting in database) is valid from any machine, regardless of the drive mappings and shares on the machine. any suggestions, Tim
1
1654
by: Richard | last post by:
Hi, I created a new directory on my WinXP-Pro/SP2 file system. Then I created a virtual directory in IIS pointing to that local directory. After completing that, I noticed that I had a mispelling in the name of the parent directory of that local directory. I "improved" the situation by creating a correctly-spelled peer of that parent directory. Then I dragged my new local directory from its misspelled parent to the correctlyl...
0
1244
by: karanovicm | last post by:
Hi I was looking for solution how to get local path for example "D:\Test \Shared Folder" from known "\\server\share", for example if somebody select shared folder using "FolderBrowserDialog" how to get local path or how I can get all shared folders but as local paths not as UNC. I do know how to get opposite, from local path find UNC share name using 'WNetGetUniversalName" Any help is welcome Thanks
4
12279
by: jaimebienlesfruits | last post by:
Hi, A bit of a noob here, but what's a local path? Say I have a file called pic.jpg in this folder: site.com/trial/. What would be the local path of the image? Thanks!
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9533
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10461
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9057
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7555
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6796
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5447
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4122
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2928
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.