我想添加网站的网站快捷方式:http://www.google.com在用户程序(开始-->所有程序)在window C#,而我们安装我们的软件设置和它安装像在用户程序:-
演示(所有程序中的文件夹)
-demo软件快捷方式
-website链接
提前感谢
发布于 2012-04-18 17:13:52
您不需要指定如何或使用什么来创建它。一种完全手动的方式
string fullURLYouWant = "http://www.google.com/";
using (StreamWriter writer = new StreamWriter(yourPath + "\\" + yourShortCutFileName + ".url"))
{
writer.WriteLine("[InternetShortcut]");
writer.WriteLine("URL=" + fullURLYouWant);
writer.WriteLine("IconIndex=0");
writer.WriteLine("IconFile=" + iconFileForYourUrl);
writer.Flush();
}https://stackoverflow.com/questions/10206067
复制相似问题