以编程方式在Windows中创建快捷方式 [英] Create shortcut in windows programmatically
问题描述
我找到了使用
VBScript
的示例,或者必须下载 Shortcut.exe
。我需要一个简单的解决方案。这是可能的吗?
那么,我必须使用 Shortcut.exe
创建快捷方式,但实际上我需要的是 HardLink
到一个文件夹,但是 Shortcut.exe
会创建一个 SoftLink
。
最后我用 junction.exe
来创建 HardLink
。
检查这篇文章的更多信息 https://stackoverflow.com/questions/46885/how-to-create-symbolic-links-in-windows
Is there a way to create link in windows?
I found samples that use VBScript
or one has to do download Shortcut.exe
.
I need a simple solution. Is that possible?
Well, I had to use Shortcut.exe
to create shortcut but actually what I needed was a HardLink
to a folder but Shortcut.exe
would create a SoftLink
.
Eventually I used junction.exe
to create the HardLink
.
Check this post for more information https://stackoverflow.com/questions/46885/how-to-create-symbolic-links-in-windows
这篇关于以编程方式在Windows中创建快捷方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!