Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 717
  • Last Modified:

Console Application, How to map a drive using C# ?

Hello,

I need to map a drive Z: using C#, the remote path is \\computername\c$

Thanks,
0
namerg
Asked:
namerg
  • 3
  • 2
1 Solution
 
Imran Javed ZiaCommented:
Hi,

Please follow the url for more details:

http://blog.tutorem.com/post/2011/01/19/C-Map-Network-Drive.aspx

http://social.msdn.microsoft.com/Forums/en-US/csharplanguage/thread/ccb2b7c4-888e-4896-9633-84b56b7cde2e/

you can also use the following but just use it in console application and ignore the UI related items.

http://www.codeproject.com/Articles/6847/Map-Network-Drive-API

Thanks
0
 
namergSystems AdministratorAuthor Commented:
By the way, I am a beginner with C#. I will take a look into those links.
0
 
namergSystems AdministratorAuthor Commented:
ohh man, I am lost on this one. :(
0
 
namergSystems AdministratorAuthor Commented:
I've requested that this question be deleted for the following reason:

I do not want to pursue my project in C#.
0
 
Imran Javed ZiaCommented:
Hi,

I think, I have answer the question and it has proper solution. If there is any objection on provided solution then it is ok, otherwise this answer deserves to be maked as ansered.

Thanks
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now