Created
April 8, 2015 12:35
-
-
Save jesusgoku/369579aa041d2c5704ae to your computer and use it in GitHub Desktop.
Mount and Dismount TrueCrypt volumes from CMD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| if "%1" == "mount" ( | |
| set volumeFile=%2 | |
| set letter=%3 | |
| goto Mount | |
| ) | |
| if "%1" == "dismount" ( | |
| set letter=%2 | |
| goto Dismount | |
| ) | |
| if "%1" == "help" ( | |
| goto Help | |
| ) | |
| goto Help | |
| :Mount | |
| "C:\Program Files\TrueCrypt\TrueCrypt.exe" %volumeFile% /letter %letter% /explore /history n /quit | |
| goto End | |
| :Dismount | |
| "C:\Program Files\TrueCrypt\TrueCrypt.exe" /quit /dismount %letter% | |
| goto End | |
| :Help | |
| echo Usage: | |
| echo. | |
| echo %0 command options | |
| echo. | |
| echo commands | |
| echo -------- | |
| echo help Display this help | |
| echo. | |
| echo mount Mount a volume file in letter | |
| echo. | |
| echo options | |
| echo ------- | |
| echo volume-file Volumne file to mount. e.g.: C:\volume-file-path | |
| echo letter Letter to mount volume. e.g.: Z | |
| echo. | |
| echo dismount Dismout volumne mount in letter | |
| echo. | |
| echo options | |
| echo ------- | |
| echo letter Letter to dismount volume. e.g.: Z | |
| echo. | |
| goto End | |
| :End |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment