手机浏览 RSS 2.0 订阅 膘叔的简单人生 , 腾讯云RDS购买 | 超便宜的Vultr , 注册 | 登陆

Junction

首页 > Software >

看到cyz的留言,我才知道有Junction这个软件。

google了一下,发现了软件下载的地址:http://technet.microsoft.com/en-us/sysinternals/bb896768,微软官方的地址哦。。。在的版本是1.06,使用起来很方便。

下载到本地后,运行junction.exe,会出现一个安装窗口,然后就什么 都没有了。其实这时候是需要到命令行下运行。。

如果不会使用直接junction.exe -?,就可以了解一些参数和实际的方法了。

官方的例子是英文的,不翻译了,毕竟就两个参数,如果不想折腾,其实就用最简单方法,运行junction.exe -?的时候就有这个例子:junction.exe d:\link c:\windows

创建的时候,在d盘不能有link目录,否则会提示有错误,目录已存在,不能创建。。。。

XML/HTML代码
  1. Windows 2000 and higher supports directory symbolic links, where a directory serves as a symbolic link to another directory on the computer. For example, if the directory D:\SYMLINK specified C:\WINNT\SYSTEM32 as its target, then an application accessing D:\SYMLINK\DRIVERS would in reality be accessing C:\WINNT\SYSTEM32\DRIVERS. Directory symbolic links are known as NTFS junctions in Windows. Unfortunately, Windows comes with no tools for creating junctions—you have to purchase the Win2K Resource Kit, which comes with the linkd program for creating junctions. I therefore decided to write my own junction-creating tool: Junction. Junction not only allows you to create NTFS junctions, it allows you to see if files or directories are actually reparse points. Reparse points are the mechanism on which NTFS junctions are based, and they are used by Windows' Remote Storage Service (RSS), as well as volume mount points.  
  2.   
  3. Please read this Microsoft KB article for tips on using junctions.  
  4.   
  5. Notethat Windows does not support junctions to directories on remote shares.  
  6.   
  7. If you want to view reparse information, the usage for Junction is the following:  
  8.   
  9.    
  10. Using Junction  
  11.   
  12. Use junction to list junctions:  
  13.   
  14. Usage: [-s]  
  15.   
  16. -s    Recurse subdirectories  
  17.   
  18. Examples:  
  19.   
  20. To determine if a file is a junction, specify the file name:  
  21.   
  22. junction c:\test  
  23.   
  24. To list junctions beneath a directory, include the –s switch:  
  25.   
  26. junction -s c:\  
  27.   
  28. To create a junction c:\Program-Files for "c:\Program Files":  
  29.   
  30. C:\>md Program-Files  
  31.   
  32. C:\>junction c:\Program-Files "c:\Program Files"  
  33.   
  34. To delete a junction, use the –d switch:  
  35.   
  36. junction -d c:\Program-Files  

 

-------

然后再说cyz的那个T盘+junction。于是我在x盘里运行了junction.exe x:\xxx e:\www\htdocs\xxx,直接把我的xxx当成引用目录

大小: 19.21 K
尺寸: 307 x 125
浏览: 1230 次
点击打开新窗口浏览全图

看到这个上传的标记,我终于可以相当于指定目录了,而且存储在了快盘里。嗯,非常开心。指定目录的时候也很方便,不用象sugarsync那样,还得一个个的找目录(因为指定的非常乱)。

最后说一声,感谢cyz介绍的这个方法和软件【当然,它不是没有缺点,它的缺点就是。。。更改junction创建的目录里的文件时,快盘认不出它被修改了。也就是说它无法即时更新,非得我手动更新才行,而快盘又没有命令行,也不能设置多久自动更新一次。】




本站采用创作共享版权协议, 要求署名、非商业和保持一致. 本站欢迎任何非商业应用的转载, 但须注明出自"易栈网-膘叔", 保留原始链接, 此外还必须标注原文标题和链接.

Tags: junction

« 上一篇 | 下一篇 »

只显示10条记录相关文章

Junction 详细使用方法 (浏览: 31893, 评论: 1)

2条记录访客评论

我上面已经写过了呀。。。

Post by gouki on 2011, February 23, 9:53 PM 引用此文发表评论 #1

那个T盘+junction怎么用啊?能写个详细点的博文?

Post by 火跃 on 2011, February 23, 4:38 PM 引用此文发表评论 #2


发表评论

评论内容 (必填):