(If you're using Windows 10 or above, you can probably double-click most .iso files to mount them, as it is now built into the OS. This post was written for earlier versions, and may still be useful if you run into things the built-in ISO mounting does not cover.)
Hi,
A three button for the freeware VirtualCloneDrive software (Done with the version 5.4.5.0)
Valid for 64bit and 32 bit windows versions.
Left Button: Mount selected ISO Image
Right Button: Unmount ISO Image
Middle Button: Open Dialog Box and select the ISO image to mount
At first I thought I had to have the .iso image selected (in a lister) to unmount it. But that's not true. I guess "Unmount selected ISO Image" through me off at first
You can use the /programfilesx86 path alias for that. On a 64-bit system, it'll resolve to "Program Files (x86)" and on a 32-bit system it'll go to "Program Files".
That works with both the icons and the commands themselves.
I took the liberty of editing your script to make that change, as it's a minor change and seemed less confusing than posting a second version of the script which people might use by mistake if you then later update your version. Hope you don't mind!
I also put quotes around the EXE paths. It's usually not needed but it can prevent problems e.g. if there was a "Program Files\Elaborate" dir then the OS might look in that instead of the "Elaborate Bytes" dir, unless the path is quoted.
One last thing I changed was adding another "&" into the 3rd button's name, since & indicates the shortcut key for a button by causing the next character to be underlined. To get an actual & rather than underlining the next character, you use two, i.e. &&.
Thank you for your tips & tricks and shorcuts. Everything is wellcome!
Feel free to change whatever you consider to correct my submited "code" (buttons, toolbars, ...)
...poweriso too, but eg. no option to open image in do-lister after mounting, why I have deactivated it. Another advantage is having contextmenu as small as possible, esp. on apps that does not support choosing entries only for personal needs (like WinRar does).
Yeah - I usually do my own custom stuff for apps like this (I also use VCD) that have decent CLI support - for similar reasons. I also add several custom actions to the Lister Context Menu that un-mounts either ALL virtual drive images, or selectively any of the 4 virtual drives I have defined on my system. Though - with the 7z plugin able to browse into ISO files just like a zip/archive, I have less reason to even actually mount most ISO's nowadays...
Virtual Clone Drive Mount button works fine but it automatically assigns a virtual drive letter (i.e. h) as opposed to me assigning a drive (i.e. x). Is there a way for the script to allow me to assign the drive letter?
You can use the /programfilesx86 path alias for that. On a 64-bit system, it'll resolve to "Program Files (x86)" and on a 32-bit system it'll go to "Program Files".
That works with both the icons and the commands themselves.
I took the liberty of editing your script to make that change, as it's a minor change and seemed less confusing than posting a second version of the script which people might use by mistake if you then later update your version. Hope you don't mind!
I also put quotes around the EXE paths. It's usually not needed but it can prevent problems e.g. if there was a "Program Files\Elaborate" dir then the OS might look in that instead of the "Elaborate Bytes" dir, unless the path is quoted.
One last thing I changed was adding another "&" into the 3rd button's name, since & indicates the shortcut key for a button by causing the next character to be underlined. To get an actual & rather than underlining the next character, you use two, i.e. &&.
Handy buttons, by the way![/quote]
Leo, can you modify this script for people who only have two buttons on their mouse?
Thanks