If we already mount image in imdisk to some letter (f.e. G:) and trying to mount to this letter again - it says "Letter already in use". Maybe add command-line switch to force unmount if already in use?
If you already have a mounted volume on this drive letter, you can use, before MountImg.exe (assuming you have administrative privileges): imdisk.exe -D -m G:
And if nothing is mounted, no problem, imdisk.exe will just return an error.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you already have a mounted volume on this drive letter, you can use, before MountImg.exe (assuming you have administrative privileges):
imdisk.exe -D -m G:
And if nothing is mounted, no problem, imdisk.exe will just return an error.
I know this. But I edit context menu entry for right-click mounting (f.e. ISO files). I mount one ISO work with it and mount 2nd ISO