Click here to Skip to main content
15,900,378 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

Hi

    I want to remove the drive letter and then reassign the letter. This is achieved by using DISKPART's  remove letter, assign letter.

    But I want to achieve this task programatically using C++.

    Can anyone tell the windows API  to achieve this task ?

Thanks

Inmar   

Posted

Hi Inmar,

You should have a look at the following MSDN article:

Editing Drive Letter Assignments
.
.
.
[Update]
Somehow I added the wrong link....
This is the correct link:
.
Best Wishes,
-David Delaune
 
Share this answer
 
v3
There is an article here that provides a library for mapping and unmapping network drives.
 
Share this answer
 
v2

Hi

   Thanks for the reply.

   The link http://msdn.microsoft.com/en-us/library/aa363908(VS.85).aspx is very useful for me to achieve the task.

Thanks

Inmar

 

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900