473,385 Members | 1,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 1161
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
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
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...
0
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:\\ -...
3
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;...
1
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...
1
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...
7
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...
1
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...
5
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.