Ok, after trying that, I am getting some errors (relating to drive not available - it's throwing an exception).
The exact exception message I'm getting is:
Windows - No Disk
Exception Processing Message 0xc0000013 Parameters 0x75F6023C
0x8490884C 0x75F6023C 0x75F6023C
[Cancel] [Try Again] [Continue]
I tried modifying the code a little as shown here (to skip drives A: - F: ):
VXM Script: (Copy and Paste into vTask)<step>
<action>Set Variable</action>
<output value="%unmapped">Variable</output>
</step>
<step>
<action>Start 'For' Loop</action>
<text>20</text>
<value1>1</value1>
<value2>1</value2>
</step>
<step>
<action>Format Number</action>
<text>={loopcount}+70</text>
<comment>'G' + loop</comment>
<value1>%C</value1>
<indents>1</indents>
<output value="%drive">Variable</output>
</step>
<step>
<action>IF File Exists</action>
<text>%drive:\*.*</text>
<options>IF NOT</options>
<indents>1</indents>
</step>
<step>
<action>Set Variable</action>
<text>%unmapped%drive:;</text>
<comment>concatenate</comment>
<indents>2</indents>
<output value="%unmapped">Variable</output>
</step>
<step>
<action>END IF</action>
<indents>1</indents>
</step>
<step>
<action>NEXT LOOP</action>
</step>
<step>
<action>Custom Dialog</action>
<text>Drive Letter;%unmapped|\\server\share|Sample Button: Jumps to Label|Sample List:;Option A;Option B;Option C|<a href="http://www.vtaskstudio.com">This is a Sample Link</a></text>
<value1>Map Drive</value1>
<value2>LIST</value2>
<value3>EDIT</value3>
</step>
But I'm still getting the exception... Is there an exception wrapper available? I can't seem to find one.