Alcohol 120%

Two buttons which mount/dismount a selected CD image file using Alcohol 120%.

The buttons assume a couple of things:

  1. Virtual drive = e:
  2. Alcohol 120% was installed to the default location.

Copy the text for each button and paste to a toolbar whilst in customize mode.

Buttons for Directory Opus 8 and 9

Mount Image:

<?xml version="1.0"?>
<button display="both" icon_size="large">
   <label>Mount Image</label>
   <tip>Mounts Selected Image in Alcohol 120%</tip>
   <icon1>C:\Program Files\Alcohol Soft\Alcohol 120\Alcohol.exe,0</icon1>
   <function type="batch">
      <instruction>"c:\program files\alcohol soft\alcohol 120\AxCmd.exe" 1: /M:"{filepath$}"</instruction>
   </function>
</button>

Unmount Image:

<?xml version="1.0"?>
<button display="both" icon_size="large">
   <label>Unmount Image</label>
   <tip>Unmounts Image from Alcohol 120% virtual drive</tip>
   <icon1>C:\Program Files\Alcohol Soft\Alcohol 120\Alcohol.exe,0</icon1>
   <function type="batch">
      <instruction>"c:\program files\alcohol soft\alcohol 120\AxCmd.exe" 1: /U</instruction>
   </function>
</button>

Buttons for Directory Opus 6

Mount Image:

[DOpus.ButtonInfo]
Name=Mount Image
Icon=0,84
Flags=2,1000,0
Color=0,a0a0a0
IconFile1=C:\Program Files\Alcohol Soft\Alcohol 120\Alcohol.exe,0
Tooltip=Mounts Image in Alcohol 120% (assumes drive is E:)
Func1=c:\program files\alcohol soft\alcohol 120\AxCmd E: /M:"%1"

Dismount Image:

[DOpus.ButtonInfo]
Name=Unmount Image
Icon=0,84
Flags=2,1000,0
Color=0,a0a0a0
IconFile1=C:\Program Files\Alcohol Soft\Alcohol 120\AxCmd.exe,0
Tooltip=Unmounts Image from Alcohol virtual drive (assumes drive is E:)
Func1=c:\program files\alcohol soft\alcohol 120\AxCmd e: /U

Author: Ben Haslett

Great function!

I would LOVE to see this for Daemon Tools as well, do you know if that's at all possible to do?

Ok done.

See this new topic: Daemon Tools

EvilG Nov20th post.

Image I am trying to load is xyz.iso located at
C:\Users\Paul\Documents\CSC Images and Updates\xyz.iso

Simply right clicked on customise then copied and pasted the mount and unmount image to the toolbar to create the buttons

Actually, the button doesn't seem to work for me, either. The %1 doesn't get turned into the selected filename for some reason. I'll ask Jon why that is.

For now, try this instead:

<?xml version="1.0"?>
<button display="both" icon_size="large">
	<label>Mount Image</label>
	<tip>Mounts Selected Image in Alcohol 120%</tip>
	<icon1>C:\Program Files\Alcohol Soft\Alcohol 120\Alcohol.exe,0</icon1>
	<function type="batch">
		<instruction>"c:\program files\alcohol soft\alcohol 120\AxCmd.exe" 1: /M:"{filepath$}"</instruction>
	</function>
</button>

Because %1 has significance internal to batch files, in the Call :Label syntax. This is as a result of an Issue Report I submitted. Use {File$} or {Filepath$} instead.

Jon confirmed it too.

%1 does still work in other types of command but, in Opus 9, %1 no longer turns into the filename in MS-DOS batch commands because it causes a conflict with the meaning of %1 in batch files, as Ken says.

This is fine as the only place you need to use %1, instead of {filepath} etc., is when you want commands which will work in both Opus and Explorer. Since MS-DOS batch commands don't work in Explorer anyway nothing is lost by the change, but some old buttons like this one may need slight updates.

Edit: I've updated the root post with new buttons that work in Opus 6, 8 and 9 and deleted most of the intermediate posts (which are no longer relevant) to tidy things up.

Just a related note, %L also will no longer work in MS-DOS Batch Functions, for the same reason. But Like Nudel says, you lose nothing hereā€”it's really only useful for Functions that need to work in Explorer and Opus.

Thanks guys - works a treat!