How can I convert a path like
\Device\HarddiskVolume3\Windows
into its corresponding virtual path? (like c:\Windows in this case)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Personally I prefer the native way:
NB: This code sample is taken from: http://www.delphipraxis.net/165249-auflistung-devices.html
This will return a map between logical drive and path. In my case:
You have to replace “\device\harddisk” part in your path with coresponding drive letter.
Please, note drive letters are user dependent.
Some useful links: