Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2013-01-03
5
Medium Priority
?
706 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
[X]
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
5 Comments
 
LVL 16

Accepted Solution

by:
Imran Javed Zia earned 1500 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

670 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