Auto-close an opened device in a lister when disconnecting

Some devices/images should not be opened in a lister when umounting/disconnecting them (like TrueCrypt-Images; you can't umount them when opened in DO).

Does someone know if DO can find a special drive/device opened in a lister so that it could be closed before unmounting a device?

For example:

  1. A TrueCrypt-Image is assigned to T:\ and opened in a left lister in Dual-Mode.
  2. Now I like to ummount the TrueCrypt-Image.
  3. Before unmount-command DO needs a to check if T: is opened in one of DO's lister (Dual; one instance only!). If so DO should change T: to C: or whatever I want, so that the unmount-command can be executed without prompting an error.

Sasa

Works about 80% of the time.

<?xml version="1.0"?> <button display="both"> <label>Drive W:</label> <tip>Drive W:</tip> <icon1>#rename3</icon1> <function type="normal"> <instruction>@set Drive=W:</instruction> <instruction>Go TABCLOSE PATH={$Drive}\*</instruction> <instruction>Set FOCUS=Dest </instruction> <instruction>Go TABCLOSE PATH={$Drive}\*</instruction> </function> </button>

Thanks, but unfortunately doesn't work for me.