帮助如何创建文件夹的快捷方式(源路径)并将该shorcut发送到c#中的桌面? [英] Help How to create shortcut of a Folder (Source Path) and send that shorcut to desktop in c#?
本文介绍了帮助如何创建文件夹的快捷方式(源路径)并将该shorcut发送到c#中的桌面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请帮助...
如何创建文件夹的快捷方式(源路径)并将该shorcut发送到c#winforms framework 3.5中的桌面
Pls Help...
How to create shortcut of a Folder (Source Path) and send that shorcut to desktop in c# winforms framework 3.5
推荐答案
尝试:
Try:
private void CreateShortcut(string humanReadable, string url)
{
string deskDir = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory);
File.WriteAllText(deskDir + "\\" + humanReadable + ".url", "[InternetShortcut]\nURL=" + url + "\n");
}
这篇关于帮助如何创建文件夹的快捷方式(源路径)并将该shorcut发送到c#中的桌面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文