Assuming a standard install of Truecrypt, create a Batch (.bat) file that does this >
c:
cd\
cd \program files (x86)
cd TrueCrypt
IF EXIST E:\path\truecryptvolume.tc truecrypt /v E:\path\truecryptvolume.tc /l x /p "secure-password" /q
IF EXIST F:\path\truecryptvolume.tc truecrypt /v F:\path\truecryptvolume.tc /l x /p "secure-password" /q
This file mounts the volume as drive letter X: (the x follows the /l parameter)
I use 2 removable drives for alternate days. They are mounted by Windows as E: and F: respectfully. This is why the script checks for both each time and uses the /q for quiet switch to surpress any error messages.
Dismounting the same volume >
c:
cd\
cd \program files (x86)
cd TrueCrypt
truecrypt /dx /q
No comments:
Post a Comment