My goal is to be able to retrieve the volume label of a disk (HD, flash drive, etc.) place that into a string variable.
I know that I could run a command line command via the shell command, redirect the output to a file, then read the contents of that file in QB64, but I'm wondering if there is a simpler way to do this.
Example:
From the "vol d:" command below, we can see that the volume label of the D: drive is "USB WINBOOT". I want to be able to grab that label (USB WINBOOT) and place it in a string variable.
C:\>vol d:
Volume in drive D is USB WINBOOT
Volume Serial Number is 8861-3C84