1 year, 11 months ago
Invoke TrueCrypt Mount while initializing a program in a TC container?
I have certain programs (U3 design) consigned to a TrueCrypt encrypted container. (Namely my Email). Is there a way with Windows shortcuts to invoke truecrypt first to mount the drive and then launch the program. Hence I'll be prompted for my password after entering it the shortcut would activate the program.
Maybe a batch using the TC command line would be the easiest thing. Thoughts? If so how do I launch a Win program via a DOS batch? I've seen it done just don't know how.
Maybe a batch using the TC command line would be the easiest thing. Thoughts? If so how do I launch a Win program via a DOS batch? I've seen it done just don't know how.
Separate topics with commas, or by pressing return. Use the delete or backspace key to edit or remove existing topics.
You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.
M$1 Answer
How fancy do you want this? Basic command to mount a known volume on a USB drive where you have the keyfile as well would be something like:
"C:\Program Files\TrueCrypt\truecrypt.exe" /v "E:\Volume.TC" /lt /a /q /k E:\MyKey.key /m ts
Lose the /k E:\MyKey.key and you will be prompted for the pass. Next just run the Start command to run a windows app such as notepad
Start Notepad.exe
So a simple batch would be:
"C:\Program Files\TrueCrypt\truecrypt.exe" /v "E:\Volume.TC" /lt /a /q /k E:\MyKey.key /m ts
Start Notepad.exe
If your looking to get really fancy then check the following links for some ideas.
http://forums.dropbox.com/topic.php?id=10435
http://sixdots.de/truecryptpassworddialog/en/
"C:\Program Files\TrueCrypt\truecrypt.exe" /v "E:\Volume.TC" /lt /a /q /k E:\MyKey.key /m ts
Lose the /k E:\MyKey.key and you will be prompted for the pass. Next just run the Start command to run a windows app such as notepad
Start Notepad.exe
So a simple batch would be:
"C:\Program Files\TrueCrypt\truecrypt.exe" /v "E:\Volume.TC" /lt /a /q /k E:\MyKey.key /m ts
Start Notepad.exe
If your looking to get really fancy then check the following links for some ideas.
http://forums.dropbox.com/topic.php?id=10435
http://sixdots.de/truecryptpassworddialog/en/
You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.
M$
Thanks for the help here's the batch file I made to autolaunch my thunderbird it mounts, then launches, and upon close dismounts and wipes the password/hash in RAM. Sweet. I mounted as a removeable drive because I think in standby it will automatically dismount.
"C:\Program Files (x86)\TrueCrypt\TrueCrypt.exe" /a favorites /l E: /h n /m rm /q /b
K:\ThunderbirdPortable\ThunderbirdPortable\ThunderbirdPortable.exe
"C:\Program Files (x86)\TrueCrypt\TrueCrypt.exe" /a favorites /d /l E: /h n /m rm /q /b /w
fantastic answer you rock!!