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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

710 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