i use TrueCrypt Containers for secure FileTransfer (usb stick usually).
I created 3 Custom Menu Entries in the Start-Menu of TC which are
TC Mount - uses AskParam to query for the DriveLetter to use and to query the Container Password
TC Dismount - uses AskParam to query for the DriveLetter of the mounted container that shall be dismounted
and TC Dismount all - doesnt use AskParam
My TC Dismount currently looks like
Code: Select all
%COMMANDER_PATH%\AskParam.exe
/c"Drive to dismount" /p"Drive" "%COMMANDER_PATH%\..\TrueCrypt\TrueCrypt.exe" /s /a /d "%%002" /q
In http://ghisler.ch/board/viewtopic.php?t=17908&highlight=drive+parameter i read that it is possible to get the current drive letter as Parameter (i didn't find anything in the help file of TC) using
%%CD:~0,1%%
However, if i modify my parameter list as follows
Code: Select all
/c"Drive to dismount" /t"%%CD:~0,1%%" /p"Drive" "%COMMANDER_PATH%\..\TrueCrypt\TrueCrypt.exe" /s /a /d "%%002" /q
Anyone knows how to achieve my goal?
TLDR: how to pass the drive letter of the current openend directory to AskParam.exe?[/code]
Thanks in advance for any suggestions!
seb-