I just added the possibility to automatically use the first unused drive letter even when mounting virtual disks with the command line tool. For this to work, specify #: as drive letter.
Example:imdisk -a -s 60M -m #:
This is a good improvement..
One question: how should one retrieve the newly assigned drive letter?
(I know how to detect each drive, but was thinking on just using imdisk.exe to interface with other apps/scripts in complete unnatended manner)
Any good ideas on this matter?
- Using an environment variable (%#:%=newlyCreatedDriveLetter)
- Outputting an errorlevel (using 0, 1, 2, 3.. - good for batch files)
- Writing an Ini type file (good for wb scripts interaction for example)
- Using a unique identifier (user specified) as title label when creating the image and later be able to unmount using this title label (solely using imdisk.exe to interface with these virtual disks)