Determine the number (index) of the disk by its letter

By the letter of the disk (volume), we determine the number of the disk in the system.

Options

volLetter - drive letter without colon

Result

Disk number on success and (-1) on failure or if the disk does not exist.

Author: admin