记录Harde学习成长生活的点点滴滴.
2012-05-11 计算机


没有评论
7 次浏览
2012-01-10 计算机


没有评论
111 次浏览

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

能进来看此篇文章的朋友,相信也不会对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盘里,或者放在网盘里~ 搞定。

2011-07-19 计算机


没有评论
60 次浏览

80端口被占用,揭秘幕后隐藏的黑手——Skype

写在前面的:
好久没写文章了,6月末百士利公司解散,被迫的和应届毕业生一起再次踏上求职之旅。
7月中旬,有幸加入了Wisdom公司,做对日软件开发,于是就踏上了CF与日语的学习之旅~

好吧,标题有点扯淡~~说正经的~

进入新公司,QQ被列为禁用软件~ IM软件变更为Skype与飞鸽。
今天重装IIS,结果重新安装后 本地网站直接Error~
cmd下看了下端口,发现80端口已经被占用
仔细检查了一遍,没发现其他服务器程序在运行~

打开XXX流量监控,切换到”网络连接”(PS:以防广告嫌疑,软件名砍掉~)
发现80端口,俨然被Skype占用~
我勒个去~~ 打开Skype设置,切换到“连接”
发现有这么一项,使用80与443端口作为备用端口

好像就是这个了~ 去掉选中,重新打开Skype。再次启动IIS,OK,问题解决~

“您已使用临时配置文件登陆”的解决办法

今天同事的电脑出现这个问题~ 登录以后 提示“您已使用临时配置文件登陆”
网上说的修改注册表的无效~

简单搜了下微软官方给出了解决方案kb947215
http://support.microsoft.com/kb/947215/zh-cn

原因:如果使用命令提示符或 Windows 资源管理器手动删除用户配置文件,则可能出现此问题。手动删除的配置文件不会删除注册表中配置文件列表中的安全标识符 (SID)。

警告:Microsoft 建议不要将此方法作为删除计算机中用户配置文件的标准方法。记录和支持的方法是使用系统属性中“高级系统设置”的“用户配置文件”设置。对于应用程序来说,使用“DeleteProfile”API 即可提供此功能。

如果存在 SID,则 Windows 将通过使用指向到不存在的路径 ProfileImagePath 加载配置文件。因此,无法加载该配置文件。

好吧….根本不适用…

解决方案2个:
1、下载Microsoft Fix it 50446 下载地址:http://go.microsoft.com/?linkid=9734641
运行就可以了,推荐此方法

2、

  1. 使用“计算机属性”对话框删除配置文件。为此,请按照下列步骤操作:
    1. 单击“开始”,右键单击“计算机”,然后单击“属性”
    2. 单击“更改设置”
    3. 在“系统属性”对话框中,单击“高级”选项卡。
    4. “用户配置文件”下,单击“设置”
    5. “用户配置文件”对话框中,选择您希望删除的配置文件,单击“删除”,然后单击“确定”
  2. 单击“开始”,在“开始搜索”框中键入 regedit,然后按 Enter。
  3. 找到并展开下面的注册表子项:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
  4. 右键单击要删除的 SID,然后单击“删除”
  5. 登录到计算机,并创建新的配置文件。

java运行时环境初始化时出现错误 你可能要重新安装flash cs5

这个问题是处在绿色版本的Flash上
而且绝大多数都是精简版本的

解决起来很容易,复制一份JRE到Adobe 的共用目录就可以

JRE下载:
http://www.java.com/zh_CN/download/index.jsp

安装到任意目录
之后复制jre文件夹到Application Data文件夹
注意目前jre版本为6.22 安装时默认文件夹名为jre6
复制后记得把名字改为jre

XP:C:\Documents and Settings\All Users\Application Data\Adobe\cs5
Vista、Win7:C:\user\All Users\Application Data\Adobe\cs5
如果没有cs5或adobe文件夹,手动创建一个

放置完毕应该是这样子的
Win7:C:\user\All Users\Application Data\Adobe\cs5\jre\
注意:Vista、Win7默认情况下是看不见All Users文件夹的,而且对Application Data没有访问权限
前面的问题 可以在资源管理器上点击alt键,选择”工具”->”文件夹选项”->”查看”
取消隐藏受保护的操作系统文件夹来访问

第二个问题
把下面的代码保存为reg,双击导入到注册表

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT*shellrunas]
@="管理员取得所有权"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT*shellrunascommand]
@="cmd.exe /c takeown /f "%1" & icacls "%1" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f "%1" & icacls "%1" /grant administrators:F"
[HKEY_CLASSES_ROOTexefileshellrunas2]
@="管理员取得所有权"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOTexefileshellrunas2command]
@="cmd.exe /c takeown /f "%1" & icacls "%1" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f "%1" & icacls "%1" /grant administrators:F"
[HKEY_CLASSES_ROOTDirectoryshellrunas]
@="管理员取得所有权"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOTDirectoryshellrunascommand]
@="cmd.exe /c takeown /f "%1" /r /d y & icacls "%1" /grant administrators:F /t"
"IsolatedCommand"="cmd.exe /c takeown /f "%1" /r /d y & icacls "%1" /grant administrators:F /t"

在Application Data文件夹上右击,选择管理员取得所有权
当然如果你安装了有获取权限的功能的软件也是可以的~

有问题可以留言~

返回顶部
分享按钮