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

Posted on 2013-01-03
Last Modified: 2013-01-04

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

Question by:namerg
  • 3
  • 2
LVL 16

Accepted Solution

Imran Javed Zia earned 500 total points
ID: 38740954

Please follow the url for more details:

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


Author Comment

ID: 38740964
By the way, I am a beginner with C#. I will take a look into those links.

Author Comment

ID: 38741001
ohh man, I am lost on this one. :(

Author Comment

ID: 38743121
I've requested that this question be deleted for the following reason:

I do not want to pursue my project in C#.
LVL 16

Expert Comment

by:Imran Javed Zia
ID: 38743122

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.


Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK ( for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now