Windows XP 中的符号链接
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/90121/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Symlink in windows XP
提问by willson
The question is how to make the similar thing like symlink in windows like in *nix. It's really hard to write whole path to the file in console (even using [tab], it's not the way if you need to change language). Adding everything in PATH is tiring too. It'll be great to make a symlink running one command.
问题是如何在 *nix 中的 windows 中制作类似符号链接的类似内容。在控制台中写入文件的整个路径真的很困难(即使使用 [tab],如果您需要更改语言,这不是方法)。在 PATH 中添加所有内容也很累人。制作一个运行一个命令的符号链接会很棒。
Actually I'm looking for console app.
其实我正在寻找控制台应用程序。
回答by typicalrunt
回答by willson
I used substfirst as it makes the path shorter. To do it but with mounting a virtual disk as typicalruntsaid, I used the junctionutility from Sysinternals.
我首先使用subst,因为它使路径更短。为此,我使用了Sysinternals的连接实用程序,但要安装一个虚拟磁盘,就像典型的runt所说的那样。
To make a symlink use the command:
要制作符号链接,请使用以下命令:
junction Disk:\path\to\mount\point Disk:\path\to\something\to\mount
To delete it use the -d
switch:
要删除它,请使用-d
开关:
junction -d Disk:\path\to\mount\point Disk:\path\to\something\to\mount
回答by Aeon
Back when I was on windows I used to use a hardlink shell extension. Not sure if this is the same one, but give this one a try: Link Shell Extension.
当我在 Windows 上时,我曾经使用硬链接外壳扩展。不确定这是否是同一个,但试试这个:Link Shell Extension。
回答by MotoWilliams
回答by gabr
Older question with longer discussion: How to create symbolic links in Windows?
讨论时间较长的旧问题:如何在 Windows 中创建符号链接?
回答by Taranfx
There's an Open source GUI Tool for Creating Symlinks in windows
有一个用于在 Windows 中创建符号链接的开源 GUI 工具
回答by William Keller
You can create junctsymlinksions in windows with mklink
.
您可以使用mklink
.
edit: If you use Vista.
编辑:如果您使用Vista。