473,545 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Getting path of the mapped folder

Hi,

I have a question. I am trying to write File Functions to read data from a
file. This function accepts FilePath as the parameter and returns Byte()
Array. Some times if the file is on the Network and let's say the Network
folder '\\SomeMachine\ SomeFolder' is mapped to some drive like 'Z:\' then how
do I get the real path '\\SomeMachine\ SomeFolder' instead of 'Z:\' ?

Thanks,
Sridhar.
Dec 16 '05 #1
2 1169
Open Windows explorer.
Menu Tools -> Map Network Driver…
Click Drive Dropdown list. It shows all mapped drivers.

HTH

Elton Wang

"Sridhar" wrote:
Hi,

I have a question. I am trying to write File Functions to read data from a
file. This function accepts FilePath as the parameter and returns Byte()
Array. Some times if the file is on the Network and let's say the Network
folder '\\SomeMachine\ SomeFolder' is mapped to some drive like 'Z:\' then how
do I get the real path '\\SomeMachine\ SomeFolder' instead of 'Z:\' ?

Thanks,
Sridhar.

Dec 16 '05 #2
I need to do that inside ASP.NET. How could I do that?

"Elton W" wrote:
Open Windows explorer.
Menu Tools -> Map Network Driver…
Click Drive Dropdown list. It shows all mapped drivers.

HTH

Elton Wang

"Sridhar" wrote:
Hi,

I have a question. I am trying to write File Functions to read data from a
file. This function accepts FilePath as the parameter and returns Byte()
Array. Some times if the file is on the Network and let's say the Network
folder '\\SomeMachine\ SomeFolder' is mapped to some drive like 'Z:\' then how
do I get the real path '\\SomeMachine\ SomeFolder' instead of 'Z:\' ?

Thanks,
Sridhar.

Dec 16 '05 #3

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

Similar topics

2
273
by: HKannen | last post by:
Hi, can anyone tell me how I can find out if e.g. "T:\Folder\SubFolder" is a mapped networkdrive or a local drive when I get this string from a file open dialog ? Thanks
5
11022
by: David Webb | last post by:
The problem started when the Working Folder for a project was somehow set to the folder of another project. I set the correct working folder in VSS and deleted the .vbproj files that had been created in the wrong folder on the hard drive. Before I discovered these files, .NET kept trying to create a new project with _1 following the project...
0
2449
by: Grant_S | last post by:
I need to identify the path to a users "My Document" folder where the user has a roaming profile and their "My Documents" folder is mapped to a network share as the H drive (specifically H:\\ - where the "My Received Files" folder path then is H:\\My Refeceived Files. The double \\ is not an escape character as subfolders only have sinvle "\"...
3
6043
by: Mr. Smith | last post by:
Hi All. I need to be able to determine the IP address a drive letter is mapped to. When a user selects a file from a file open dialog, They will, as usual, navigate to the file they want via; Drive letter, folder, folder etc. The Windows file open dialog returns this path in the format C:\folder\folder\file.ext. What I need to know is...
1
2230
by: Steve | last post by:
Hi all, I am referring to this article in MSDN : http://msdn.microsoft.com/library/en-us/secauthn/security/logonuser.asp While creating folder on the remote machine, we are specifying the UNC path as per the example. But we get this error "could not find a part of the path". we are prefixing the path with @ symbol and also tried with the...
1
1734
by: Arthur | last post by:
Hi All, I know there have been previous posts with this topic but the issue for most seems to be the security permissions on the shared drive. My scenario is as follows : I have IIS on local machine, I have code on a mapped drive in the network. I tried writing to a folder on the mapped drive and then also to a folder in my C:, both give...
7
5474
by: epikto | last post by:
I have a mapped share that I am trying to get a listing of all the files that it contains. I use the following code to access the contents String files = Directory.GetFiles(path); I can then enumerate through that array to get my listing. However I am trying to set my application up as a service. And now (after calling methods in a...
1
1490
by: =?Utf-8?B?TWlrZQ==?= | last post by:
In .NET 2.0 hosted on Server 2003, I'm attempting to use File.Copy(src,dst) to write to a shared folder on a network drive. The folder is used by every user who has a log on id and has 'Full Control' permissions granted to 'Everyone'. Still, I am not able to write to the folder from my code-behind code. I get "unknown user name or bad...
5
4910
ollyb303
by: ollyb303 | last post by:
Hello, I have a small problem that I hope someone can help with. My Access 2000 database uses several tables and is split into BE and FE. In the FE the tables are all linked to the BE but the file paths all seem to include the drive letter for the drive they are stored on. This is not a problem in our office as users all have the same...
0
7479
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...
0
7411
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...
1
7439
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7773
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5343
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...
0
4962
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...
0
3468
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...
0
3450
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1901
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

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.