Hi,

I need some information regarding the APIs to use, to get the drive letter, if I know the label of that drive.

For eg, my hard disk has been partitioned into 3 drives, C:, D:, E:. The labels (label1, label2, label3 )for these drives have been assigned dynamically. I want to locate a file ABC.txt which would be in the drive, of which voulme label is "Label2".

can anyone suggest the API to use, or can this be achieved thru batch script, if so, pl provide the required batch commands.

Thanks,
sv

It might pay to repost this question in the "Shell Scripting" forum if you want to specifically use a batch script to do this. Someone there may be able to help.

Good luck,
darkagn

moved

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.