Solved

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

Posted on 2013-01-03
5
653 Views
Last Modified: 2013-01-04
Hello,

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

Thanks,
0
Comment
Question by:namerg
  • 3
  • 2
5 Comments
 
LVL 16

Accepted Solution

by:
Imran Javed Zia earned 500 total points
ID: 38740954
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
 

Author Comment

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

Author Comment

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

Author Comment

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

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

Expert Comment

by:Imran Javed Zia
ID: 38743122
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

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 (http://www.microsoft.com/en-us/download/details.aspx?id=27876) 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