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?
↧