views:

52

answers:

1

Dear all

How can i get device name for drive letter

example: how can i get device name for G:/

Thank you for any help

+2  A: 

If you want "C:\" to "\Device\SomeHardDisk1" you can use QueryDosDevice. (GetLogicalDriveStrings will list them all)

Alex K.
Agreed, it is about the best thing to do. The SUBST command is fun.
Hans Passant
thank you for the replyi want to get information like "USB MASS storage device " for drive letter...is that possible
barbgal
Alex K.