Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Using DeleteVolumeMountPoint function.

Using DeleteVolumeMountPoint function.

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dipuks
    wrote on last edited by
    #1

    Hey I used DeleteVolumeMountPoint function to remove a USB drive (E:) from my machine. Now i want to bring that back. I tried re-booting and that doesn't seems to help. I think calling SetVolumeMountPoint function will bring it back. But that function needs the GUID of USB drive, which i don't have. Any ideas how to get the USB drive(volume - E:\) back? Can i do that via regedit? If so, how? THanks in advance

    P S 2 Replies Last reply
    0
    • D dipuks

      Hey I used DeleteVolumeMountPoint function to remove a USB drive (E:) from my machine. Now i want to bring that back. I tried re-booting and that doesn't seems to help. I think calling SetVolumeMountPoint function will bring it back. But that function needs the GUID of USB drive, which i don't have. Any ideas how to get the USB drive(volume - E:\) back? Can i do that via regedit? If so, how? THanks in advance

      P Offline
      P Offline
      Peter_in_2780
      wrote on last edited by
      #2

      Got a system restore point from before you deleted it? [If not, why not? ;P ]

      Software rusts. Simon Stephenson, ca 1994.

      1 Reply Last reply
      0
      • D dipuks

        Hey I used DeleteVolumeMountPoint function to remove a USB drive (E:) from my machine. Now i want to bring that back. I tried re-booting and that doesn't seems to help. I think calling SetVolumeMountPoint function will bring it back. But that function needs the GUID of USB drive, which i don't have. Any ideas how to get the USB drive(volume - E:\) back? Can i do that via regedit? If so, how? THanks in advance

        S Offline
        S Offline
        Sauro Viti
        wrote on last edited by
        #3

        If you want to do it programmatically, there is some work to do around the SetVolumeMountPoint function. The easiest way is to do it from the Control Panel: open the Administrative tools and run Computer management, then select the section Disk management. There you can see all the disks, both removable and not; you should right-click on the USB drive and select Change drive letter and path (or Assign drive letter and path, or similar). Cheers, Sauro

        D 1 Reply Last reply
        0
        • S Sauro Viti

          If you want to do it programmatically, there is some work to do around the SetVolumeMountPoint function. The easiest way is to do it from the Control Panel: open the Administrative tools and run Computer management, then select the section Disk management. There you can see all the disks, both removable and not; you should right-click on the USB drive and select Change drive letter and path (or Assign drive letter and path, or similar). Cheers, Sauro

          D Offline
          D Offline
          dipuks
          wrote on last edited by
          #4

          Hey Sauro, That worked awesome! Thanks a lot. :-)

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups