Virtual Clone Drive Mount/Unmount Button

(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

<?xml version="1.0"?>
<button backcol="none" display="both" icon_size="large" textcol="none" type="three_button">
	<icon1>/programfilesx86\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe,0</icon1>
	<button backcol="none" display="both" icon_size="large" textcol="none">
		<label>Mount</label>
		<tip>Mount selected ISO Image</tip>
		<icon1>/programfilesx86\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe,0</icon1>
		<function type="normal">
			<instruction>&quot;/programfilesx86\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe&quot; /d=0 &quot;{filepath$}&quot;</instruction>
		</function>
	</button>
	<button backcol="none" display="both" icon_size="large" textcol="none">
		<label>UMount</label>
		<tip>Unmount ISO Image</tip>
		<icon1>/programfilesx86\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe,0</icon1>
		<function type="normal">
			<instruction>&quot;/programfilesx86\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe&quot; /u /d=0</instruction>
		</function>
	</button>
	<button backcol="none" display="both" icon_size="large" textcol="none">
		<label>Browse &amp;&amp; Mount</label>
		<tip>Open Dialog and select the ISO image to mount</tip>
		<icon1>/programfilesx86\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe,0</icon1>
		<function type="normal">
			<instruction>&quot;/programfilesx86\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe&quot; /d=0 /B</instruction>
		</function>
	</button>
</button>

Edited: To change Right Button description as noted by ktbcrash

This is based on the DaemonTools thread.

Hini

Awesome! Thanks for this :thumbsup:

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 :wink:

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!

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, ...)

:slight_smile:

...you could also realize via filetypes, which is faster then via menu (I use same, but with poweriso)

Virtual CloneDrive has right-click context menu stuff built in so there's no need to set anything up for anyone who wants that.

...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?

Run VCDMount.exe without any arguments and it will show you the command line arguments you can use, one of which lets you specify 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 :slight_smile:

Preferences / Toolbars / Options / Simulate middle mouse click with control + left click :slight_smile: