以编程方式在Windows中创建快捷方式 [英] Create shortcut in windows programmatically

查看:163
本文介绍了以编程方式在Windows中创建快捷方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在Windows中创建链接?

我找到了使用 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆