Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

How do I find the drive letter by diskpart disk/partition numbers in batch files?

$
0
0
This is a difficult one. I know of questions like this about finding drive letter by volume number in batch files which were answered, but in this case I don't have the volume number in the environment variables, only the disk/partition numbers that can be used with diskpart. How do I find the drive letter from these numbers in a batch file or execute a command if no drive letter is assigned, or at least convert these numbers to a volume number?

Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>