dward's Avatar
dward 7
35 Asked
385 Answered
128 Best
3
No one has voted on this question yet :(
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.
Tip for best answer: M$2.03
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$

What is Your Answer?

0
0
0

1 Answer

0
techhelp's Avatar
techhelp | 1 year, 10 months ago
3
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/

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$
dward's Avatar
dward | 1 year, 8 months ago Report

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

dward's Avatar
dward | 1 year, 10 months ago Report

fantastic answer you rock!!

Report Abuse

Post Reply Cancel

Learn something new with our FREE educational apps!

Private lessons in the comfort of your own home. Get back in shape or finally pick up a guitar with our great experts guiding you the whole way!
Learn Guitar
Learn Hip Hop
Learn Pilates