I need to write a little script for a specific HDD.
I use the following command to detect the HDD by size:
C:\>wmic logicaldisk get size,freespace,caption | find "750153363456" E: 27996512256 750153363456
Now I need to store the drive-letter from that output (in this case E:) into a variable. How can I do that?