<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[Alen-SoftWare]]></title> 
<link>http://www.alensw.com/index.php</link> 
<description><![CDATA[我的软件空间]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[Alen-SoftWare]]></copyright>
<item>
<link>http://www.alensw.com/read.php?11</link>
<title><![CDATA[Win7/Vista 巧用 mklink.exe 实现系统和用户文件的分区存放]]></title> 
<author>nanling &lt;nanling@sina.com&gt;</author>
<category><![CDATA[我的文章]]></category>
<pubDate>Sun, 18 Jan 2009 08:54:58 +0000</pubDate> 
<guid>http://www.alensw.com/read.php?11</guid> 
<description>
<![CDATA[ 
	 &nbsp; &nbsp;最近因为升级WM上的两个小程序，又重新玩起了Windows系统，正好听说Windows 7发布了Beta以及官方中文语言包，就顺便安装了一下，发现Windows 7确实在性能和资源占用上要比Vista有不少的改进，特别是系统启动速度快了不少，稳定性不相当不错，看来MS这两年没少花工夫。好了废话不说转入正题！<br/> &nbsp; &nbsp;<br/> &nbsp; &nbsp;之前一直在玩ubuntu linux，被它那清晰高效的文件系统和文件结构所深深折服，特别是它的系统文件的结构，可以完全将系统文件和用户自己的文件（包括用户自己的文档、图片等内容和用户自己的大量配置文件）放在完全不同的分区内，这样当系统需要升级或重装时，存放用户文件的分区根本无需有任何变动，当系统重装后，只有还是用这个用户名，那你所有文档和设置都将和重装前完全一样！这就省去了大量的时间和精力，也保证了用户自己重要文件的安全性！<br/> &nbsp; &nbsp;<br/> &nbsp; &nbsp;而Windows在安装的时候是无法实现这样的分区存放方式的，但从Vista开始，微软提供了一个它至少10年前就应该提供的文件系统的功能：符号链接，命令行工具是mklink.exe(相当于linux下的ln)，这是一个在linux广泛使用的功能，说的简单一点，有点像Windows的.lnk文件，但又完全不一样，一样之处在于访问它和访问目标文件本身没什么区别，不一样之处在于所有第三方程序都需要自己去解析这个.lnk文件，而不像符号链接那样对程序是无缝透明的！<br/> &nbsp; &nbsp;<br/> &nbsp; &nbsp;那么这个Vista提供了link有什么好处呢，至少第一个好处就是，当我们安装完Vista或Windows 7时，发现系统盘下面没有了名字又长又难以理解的"Documents and Settings"目录，事实上它被当成系统文件隐藏起来了，当你用dia /a的时候还能看到它，但它被link到了另一个新目录：ProgramData，这可以说是Windows的一大改进，它把软件生成的数据和用户自己的数据分离开来了，原先的"Documents and Settings"里的内容事实上被分开来放在”&#92;ProgramData“和”&#92;Users“这两个地方，而后者更像是linux的home目录，或者OSX的Users目录，它将所有用户自己的配置文件（包括注册表的HKEY_LOCAL_USER的内容）以及“我的文档”、“我的图片”之类的用户自己的内容都放在了一起，当然，配置文件相当的都放在一个隐藏的叫“AppData”的目录下面，它和“我的图片”之类都位于“&#92;Users&#92;我的用户名”下面，这几乎和linux以及OSX的文件结构完全一致！<br/> &nbsp; &nbsp;<br/> &nbsp; &nbsp;上面说了这么多的铺垫，不知道大家看明白了没，接下来才是最关键的部分了。以上所有这些目录在系统安装完以后，都还在同一个分区下面，一般情况下都是在C:&#92;下面，也就是说C:&#92;Windows和C:&#92;Users都在一起，这样万一我的系统坏了需要重新就很麻烦了，我得先把“C:&#92;Users&#92;我的用户名”目录里的东东都先备份出来（当然你可以说你自己的文件都不是放在C盘里的或者你自己重新定义了“我的文档”的位置，这另当别论，至少你没有好好利用这个目录。而之前像“番茄花园”之类的XP优化版都是默认将“我的文档”重定向到D盘或其它盘上的，这也是为了更方便的让用户管理自己的文档）。<br/> &nbsp; &nbsp;<br/> &nbsp; &nbsp;而现在我们有了更方便的方法，那就是用mklink.exe这个小工具，以下是一些简要的步骤：<br/><span style="color: #0000FF;"> &nbsp; &nbsp;1。在“计算机管理”里把Administrator用户激活，注销后用Administrator登录；<br/> &nbsp; &nbsp;2。把“C:&#92;Users&#92;我的用户名”整个目录移到其它盘上，假设移到“D:&#92;我的用户名”;<br/> &nbsp; &nbsp;3。用mklink.exe创建目录链接：mklink.exe /D C:&#92;Users&#92;我的用户名 D:&#92;我的用户名，提示会显示链接已经建立，并且会有“<==>”这样一个符号告诉你这两个目录是等同的；<br/> &nbsp; &nbsp;4。重新登录你自己的帐号，发现一切都没有变化，变化的只是你的文件将和系统分离，它们将更安全！<br/> &nbsp; &nbsp;5。下次重装时，还用同一个用户名，先用Administrator登录后把新系统中的"C:&#92;Users&#92;我的用户名"删除(否则mklink.exe会报无法创建链接)，再用第3步把你位于D盘上的目录重新做下链接即可<br/></span><br/> &nbsp; &nbsp;如果你登录系统就是用的帐号本身就是Administrator怎么办？用PE启动！有人已经在PE下测试过mklink.exe是可用的，当然在PE下你得用绝对路径来执行，在系统分区上搜索一下mklink.exe所在的目录即可。<br/><br/> &nbsp; &nbsp;前几天我的Windows 7总是无法与PPC同步，就重装了一下，用上面的步骤重新后，发现我所有的用户相关的配置都还存在，包括注册表里的HKEY_LOCAL_USER的内容，收藏夹，IE的cookies，等等内容。。。<br/><br/> &nbsp; &nbsp;用mklink.exe实现系统和用户目录分离只是一个简单应用，事实上有了链接这个功能后，我们还能将更多的东西分离出来存放，比如Windows的Temp和Log目录等（可以参考这个帖子：http://www.51nb.com/forum/tid774315），这些在linux都是完全可以独立挂载到其它分区上的，要是Vista/Windows 7在安装的时候就能让用户选择将用户目录重定向到其它分区就完美了！<br/> &nbsp; &nbsp;
]]>
</description>
</item><item>
<link>http://www.alensw.com/read.php?11#blogcomment3166</link>
<title><![CDATA[[评论] Win7/Vista 巧用 mklink.exe 实现系统和用户文件的分区存放]]></title> 
<author>starrick &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Sun, 18 Jan 2009 09:44:55 +0000</pubDate> 
<guid>http://www.alensw.com/read.php?11#blogcomment3166</guid> 
<description>
<![CDATA[ 
	你好，nanling，请查看下邮箱.
]]>
</description>
</item><item>
<link>http://www.alensw.com/read.php?11#blogcomment3196</link>
<title><![CDATA[[评论] Win7/Vista 巧用 mklink.exe 实现系统和用户文件的分区存放]]></title> 
<author>Yonsm &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Wed, 21 Jan 2009 10:01:01 +0000</pubDate> 
<guid>http://www.alensw.com/read.php?11#blogcomment3196</guid> 
<description>
<![CDATA[ 
	非常有用的功能，以前都手动指定没个需要转移的目录。以后好了，哈啊哈，腰不酸了背不疼了……
]]>
</description>
</item><item>
<link>http://www.alensw.com/read.php?11#blogcomment3228</link>
<title><![CDATA[[评论] Win7/Vista 巧用 mklink.exe 实现系统和用户文件的分区存放]]></title> 
<author>云峰 &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Tue, 27 Jan 2009 13:40:56 +0000</pubDate> 
<guid>http://www.alensw.com/read.php?11#blogcomment3228</guid> 
<description>
<![CDATA[ 
	我在xp下用变量就可以做到，先把 c盘下个人文件夹移到d盘，然后在我的电脑-属性-高级-环境变量里加一个变量userprofile=D:\我的用户名,重启就可以达到楼主的功能
]]>
</description>
</item><item>
<link>http://www.alensw.com/read.php?11#blogcomment3288</link>
<title><![CDATA[[评论] Win7/Vista 巧用 mklink.exe 实现系统和用户文件的分区存放]]></title> 
<author>panda &lt;panda@pandaking.cn&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Tue, 10 Feb 2009 04:44:58 +0000</pubDate> 
<guid>http://www.alensw.com/read.php?11#blogcomment3288</guid> 
<description>
<![CDATA[ 
	我前些天安装win7了，无奈没有合适的驱动。<br/>貌似win7要给电脑的驱动来个翻天覆地的变化。
]]>
</description>
</item><item>
<link>http://www.alensw.com/read.php?11#blogcomment3316</link>
<title><![CDATA[[评论] Win7/Vista 巧用 mklink.exe 实现系统和用户文件的分区存放]]></title> 
<author>子言 &lt;8595005@qq.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Mon, 16 Feb 2009 01:41:54 +0000</pubDate> 
<guid>http://www.alensw.com/read.php?11#blogcomment3316</guid> 
<description>
<![CDATA[ 
	您好! &nbsp;QCellCore 能添加以下几个功能吗:<br/>1. &nbsp;增加虚拟来电吗?<br/>2. &nbsp;拨10086等客服电话不关频.<br/><br/>真希望这个软件有这些功能..期待...
]]>
</description>
</item><item>
<link>http://www.alensw.com/read.php?11#blogcomment3386</link>
<title><![CDATA[[评论] Win7/Vista 巧用 mklink.exe 实现系统和用户文件的分区存放]]></title> 
<author>枫间残月 &lt;xlroot@163.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 05 Mar 2009 12:36:12 +0000</pubDate> 
<guid>http://www.alensw.com/read.php?11#blogcomment3386</guid> 
<description>
<![CDATA[ 
	用了那个QCellcore才来到这时里的。。看了这篇文章我觉得把目录挂载到分区的功能在win2000里就有了吧，在磁盘管理中，可以把NTFS分区，挂载到空白的文件夹里，那时候我做无盘的读写分离的时候做过。
]]>
</description>
</item><item>
<link>http://www.alensw.com/read.php?11#blogcomment3415</link>
<title><![CDATA[[评论] Win7/Vista 巧用 mklink.exe 实现系统和用户文件的分区存放]]></title> 
<author>andy &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 12 Mar 2009 15:21:19 +0000</pubDate> 
<guid>http://www.alensw.com/read.php?11#blogcomment3415</guid> 
<description>
<![CDATA[ 
	是 dir /a吧
]]>
</description>
</item><item>
<link>http://www.alensw.com/read.php?11#blogcomment3555</link>
<title><![CDATA[[评论] Win7/Vista 巧用 mklink.exe 实现系统和用户文件的分区存放]]></title> 
<author>panda &lt;panda@pandaking.cn&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Fri, 01 May 2009 04:26:14 +0000</pubDate> 
<guid>http://www.alensw.com/read.php?11#blogcomment3555</guid> 
<description>
<![CDATA[ 
	节日的问候！五一节快乐！<br/>非常喜欢你的软件
]]>
</description>
</item><item>
<link>http://www.alensw.com/read.php?11#blogcomment3571</link>
<title><![CDATA[[评论] Win7/Vista 巧用 mklink.exe 实现系统和用户文件的分区存放]]></title> 
<author>Yonsm &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Sun, 03 May 2009 10:58:03 +0000</pubDate> 
<guid>http://www.alensw.com/read.php?11#blogcomment3571</guid> 
<description>
<![CDATA[ 
	发现一个问题，mklink.exe 是不存在的，mklink是 CMD.EXE 内置的命令。<br/>要更改 Administrator，可以先建立一个具有超级用户权限的账户，注销登录更改，一样的操作。<br/><br/>另外：<br/><br/>创建符号链接。<br/><br/>MKLINK [[/D] &#124; [/H] &#124; [/J]] Link Target<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/D&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;创建目录符号链接。黙认为文件<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;符号链接。<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/H&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;创建硬链接，而不是符号链接。<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/J&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;创建目录联接。<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Link&nbsp;&nbsp;&nbsp;&nbsp;指定新的符号链接名称。<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Target&nbsp;&nbsp;指定新链接引用的路径<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(相对或绝对)。<br/><br/>不知道/H 硬链接和 /J目录联接有什么好处没。没找到详细说明
]]>
</description>
</item><item>
<link>http://www.alensw.com/read.php?11#blogcomment3618</link>
<title><![CDATA[[评论] Win7/Vista 巧用 mklink.exe 实现系统和用户文件的分区存放]]></title> 
<author>Betty &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 14 May 2009 15:01:33 +0000</pubDate> 
<guid>http://www.alensw.com/read.php?11#blogcomment3618</guid> 
<description>
<![CDATA[ 
	使用Windows XP时习惯将#8220;我的文档#8221;文件夹重定向到其他盘上，这样重装系统时丢失的数据少一点。在Win 7/Vista下情况有了变化，所有的用户数据都被放到了#8220;C:Users用户名#8221;这个...
]]>
</description>
</item>
</channel>
</rss>