命令行下使用 TrueCrypt暨 快速加载指定文件至指定盘符

作者: harde 分类: 计算机 发布时间: 2012-01-10 13:12

能进来看此篇文章的朋友,相信也不会对TrueCrypt陌生,所以TrueCrypt是个什么东西,相信我就不用介绍了~
今天说下他的命令行使用。
个人比较喜欢使用LastPass保存密码,以及各种同步功能,但是呢,在公司电脑又不能直接使用,毕竟不是私人电脑,所以TrueCrypt对我来说,是个很好的解决方案。
但是呢,每次输入密码、KEY文件又太过于麻烦,所以呢我就直接使用命令行命令,一部到位了~~

先看下 TrueCrypt 的命令

/a /auto If no parameter is specified, automatically mount the volume. If devices is specified as the parameter (e.g., /a devices), auto-mount all currently accessible device/partition-hosted TrueCrypt volumes. If favorites is specified as the parameter, auto-mount favorite volumes. Note that /auto is implicit if /quit and /volume are specified.
/b /beep Beep after a volume has been successfully mounted or dismounted.
/cache /c y or no parameter: enable password cache; n: disable password cache (e.g., /c n). Note that turning the password cache off will not clear it (use /w to clear the password cache).
/dismount /d Dismount volume specified by drive letter (e.g., /d x). When no drive letter is specified, dismounts all currently mounted TrueCrypt volumes.
/explore /e Open an Explorer window after a volume has been mounted.
/force /f Forces dismount (if the volume to be dismounted contains files being used by the system or an application) and forces mounting in shared mode (i.e., without exclusive access).
/help /? Display command line help.
/history /h y or no parameter: enables saving history of mounted volumes; n: disables saving history of mounted volumes (e.g., /h n).
/keyfile /k Specifies a keyfile or a keyfile search path. For multiple keyfiles, specify e.g.:
/k c:\keyfile1.dat /k d:\KeyfileFolder /k c:\kf2
/letter /l Driver letter to mount the volume as. When /l is omitted and when /a is used, the first free drive letter is used.
/mountoption /m ro or readonly: Mount volume as read-only.
/password /p The volume password. If the password contains spaces, it must be enclosed in quotation marks (e.g., /p “My Password”). Use /p “” to specify an empty password. Warning: This method of entering a volume password may be insecure, for example, when an unencrypted command prompt history log is being saved to unencrypted disk.
/quit /q Automatically perform requested actions and exit (main TrueCrypt window will not be displayed). If preferences is specified as the parameter (e.g.,
/q preferences), then program settings are loaded/saved and they override settings specified on the command line.
/q background launches the TrueCrypt Background Task (tray icon). Note that /q has no effect if the container is accessible only in local user name space (TrueCrypt will exit only after the volume is dismounted), e.g., a network volume.
/silent /s If /q is specified, suppresses interaction with the user (prompts, error messages, warnings, etc.). If /q is not specified, this option has no effect.
/volume /v File and path name of a TrueCrypt volume to mount (do not use when dismounting). To mount a hard disk partition, use, for example, /v \Device\Harddisk1\Partition3 (to determine the path to a partition, run TrueCrypt and click Select Device). Note that device paths are case-sensitive.
/wipecache /w Wipes any passwords cached in the driver memory.
rm removable Mount volume as removable medium.
ts timestamp Do not preserve container timestamps
sm system Without pre-boot authentication, mount a partition that is within the key scope of system encryption (for example, a partition located on the encrypted system drive of another operating system that is not running). Useful e.g. for backup or repair operations.
Note: If you supply a password as a parameter of /p, make sure that the password has been typed using the standard US keyboard layout (in contrast, the GUI ensures this automatically).
bk headerbak Mount volume using embedded backup header.
Note: All volumes created by TrueCrypt 6.0 or later contain an embedded backup header (located at the end of the volume).

OK,动手试试
truecrypt e:\doc.tc /a /l z /e /q
执行后,e盘下的doc.tc文件会被加载为z盘,并自动打开资源管理器,Truecrypt不会显示。
复杂点,加上密码与key
truecrypt e:\doc.tc /a /p “123” /k c:\key /l z /e /q

ok~ 写个bat,放U盘里,或者放在网盘里~ 搞定。

如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注