FAQ Database Discussion Community

How to retrieve removable storage drive letter using C/C++ [duplicate]

This question already has an answer here: Enumerating all available drive letters in Windows 5 answers How can I get the removable drive letter so that I could create a path and copy data from PC to the removable drive? Currently I'm using _getcwd(buff,b_SIZE); MessageBox(buff); strncpy(Root,buff,3); I have no...