473,507 Members | 5,060 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Mapping network drives

I am having a hard time figuring out how to map a network share to a local drive letter. I know I could use the command shell program, but I would prefer not to if i can avoid it. Any suggestions?
Nov 16 '05 #1
3 1396
Shell command will be the easy way to do.

Other option is use access functions in "mpr.dll" using DllImport.

--
Shak
(Houston)


"Jefferson Cowart" <Je*************@discussions.microsoft.com> wrote in
message news:77**********************************@microsof t.com...
I am having a hard time figuring out how to map a network share to a local

drive letter. I know I could use the command shell program, but I would
prefer not to if i can avoid it. Any suggestions?
Nov 16 '05 #2
Which functions in mpr.dll would I use?

"Shakir Hussain" wrote:
Shell command will be the easy way to do.

Other option is use access functions in "mpr.dll" using DllImport.

--
Shak
(Houston)


"Jefferson Cowart" <Je*************@discussions.microsoft.com> wrote in
message news:77**********************************@microsof t.com...
I am having a hard time figuring out how to map a network share to a local

drive letter. I know I could use the command shell program, but I would
prefer not to if i can avoid it. Any suggestions?

Nov 16 '05 #3
I figured it out. Thanks.

"Shakir Hussain" wrote:
Shell command will be the easy way to do.

Other option is use access functions in "mpr.dll" using DllImport.

--
Shak
(Houston)


"Jefferson Cowart" <Je*************@discussions.microsoft.com> wrote in
message news:77**********************************@microsof t.com...
I am having a hard time figuring out how to map a network share to a local

drive letter. I know I could use the command shell program, but I would
prefer not to if i can avoid it. Any suggestions?

Nov 16 '05 #4

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

Similar topics

4
1585
by: Dhruv | last post by:
Hi, I was wondering is there a way to map a network drive a on persons machine with a online gui interface? Is there a way user 1 can map drives on THEIR computer using an online interface? ...
8
5155
by: Leo R | last post by:
Hi, Is it possible to create a network-drive at the SYSTEM-level? E.g.: map X: to \\server1\share so a windows service can reach X: without having to log on? I want a Windows .NET service to...
1
4909
by: BuddyWork | last post by:
Hello, I need to know how I can check if the drives on my machine are network drives and local drives via the .Net framework. For example my PC has the following drives C: Local D: Local N:...
0
2320
by: Dennis | last post by:
I have tried to use the IWshRuntimeLibrary and ManagementObjectSearcher("SELECT * FROM Win32_LogicalDisk") to get all Logical Drives, Mapped Network Drives, Shared Folders and Shared Drives with...
3
1465
by: GWold | last post by:
Hi all! I'm trying to figure out how to map a network drive in VB.NET/.NET Framework. I understand that I can add references to wscript and the scripting runtime library, but I want to do it...
2
9882
by: Tomas Vera | last post by:
Hello All, I have a web application that is required to copy a file from the WebServer to a remote web server (staging server to production server). I've created an application that maps the...
13
7053
by: =?Utf-8?B?RGF2ZQ==?= | last post by:
I am actually trying to get the UNC path of the main module of a process running from a mapped drive, and I am trying to do this from a service. The ProcessModule class only provides the full path...
2
2653
by: =?Utf-8?B?ZGdjb29wZXI=?= | last post by:
When I get a list of drives using the Directory.GetLogicalDrives(), it gives me all drives including disconnected network drives. When I attempt to use Directory.GetDirectories() on a disconnected...
10
10977
by: =?Utf-8?B?Z3JlYXRiYXJyaWVyODY=?= | last post by:
Sorry about that previous one. I pressed enter too early. How does one go about mapping a network drive in C#. i know you use MapNetworkDrive in scripting languages, but i'm not sure how to do it...
0
2047
by: Daffydd | last post by:
Hi all, This one's driving me up a wall! We have a small office network, Windows SBS 2003, nothing fancy - recently upgraded from an old Compaq running Novell. Back in the day we used the "F"...
0
7314
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
7372
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...
0
7482
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...
0
4702
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...
0
3191
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...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1540
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 ...
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
411
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...

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.