Mounting Truecrypt volumes to a specific drive letter

I've created a button, allowing me to mount the current file as Truecrypt volume:

@set MyDrive={dlgchoose|Destination Drive|Q:+S:+T:+U:+V:} C:\Program Files (x86)\TrueCrypt\TrueCrypt.exe /l {$MyDrive} /v {filepath} /q {$MyDrive}\

My - obvious - problem is: I have to manually list all selectable drive letters in the dlgchoose-defintion. This is kind of lame, because a) it works only for me and b) it lists drive letters which are occupied by other volumes or network drives.

Is there any smart way to do this - e.g. list only available drive letters in dlgchoose?

This is a button I use. You can choose between different TC-Containers and assign different letters. Also it includes the password (not safe!) and - if needed - the keyfile.

@runmode hide @set var1 = {dlgchoose|Choose TrueCrypt-Container:|TC1=TC-File1+TC2=TC-File2} @set var2 = {dlgchoose|Choose driveletter|E:=E+F:=F} TrueCrypt.exe /q background /l{$var2} /m rm /v "{$var1}" /p Password /k "Keyfile"

  1. Change path to TC-Files (File1, File2,...)
  2. Change driveletters (E, F,...)
  3. Insert password (or remove /p)
  4. Add path to keyfile in quotes (or remove /k)

You can simply modify this to use in contextmenu, right or dblclck (therefore create a TC filetype-group, for example use .tc as extension).

Unmount all TC-Conatiners:

TrueCrypt\TrueCrypt.exe /q /d

You can not show available driveletters.

You can assign removables to f:,g:,h:. Windows will remember each device's driveletter. Then create a button mounting TC to specified driveletters after removables e.g. i:,j:,k:. Network drives are always assigned backwards (z:,y:,x:,...)