We help IT Professionals succeed at work.

How unmap drive completely, not remember driver name.

OneClickfcv
OneClickfcv asked
on
576 Views
Last Modified: 2012-05-08
I am looking for unmap drive completely, not remember map drive name.

I programming with C# 2005, have some task need to access file on remote computer.
I map to remote computer by program, after that unmap to that drive.
Even unmap drive successful, but window still remember  drive name last time.
So, next time, when I run program again, I can not map to same drive name.

Thank.
Comment
Watch Question

Meir RivkinFull stack Software Engineer
CERTIFIED EXPERT

Commented:
how do u map/unmap?
can u post your code?
Full stack Software Engineer
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
http://www.codeproject.com/KB/system/mapnetdrive.aspx

Yes, I use that sample.
This sample some time can un-map drive completely, some time still remmember map drive name.

Author

Commented:
Before, I also try map drive in the first place,  by manual on Windows
such as: ...  \\ComputerB\SomeFolder\etc\  
And start application, do many tasks.

But I need to access file, folder ( read, write,  compress, extract....), time control  of many terminals.
I only run program on a application server, and from server, I control every remote terminals.
If I map first, I seem be no good way.
Thank you.

Author

Commented:
TKS.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.