您的问题似乎不完整,您是想询问关于C语言编程的某个具体问题吗?比如C语言的语法、编程技巧、项目开发等。请提供更具体的信息,这样我才能给出更准确的回答。
- 内容介绍
- 文章标签
- 相关推荐
本文共计131个文字,预计阅读时间需要1分钟。
1. 在项目中添加引用,Project -> Add Reference -> COM Windows Script Host Object Model.
2.添加命名空间,using IWshRuntimeLibrary;
1、在项目中添加引用,Project>Add Reference>COM>Windows Script Host Object Model.
2、添加
using IWshRuntimeLibrary;
#region 创建快捷方式
WshShell wshShell = new WshShell();
string path = System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory), "哈哈哈.lnk");
IWshShortcut shortcut = (IWshShortcut)wshShell.CreateShortcut(path);
shortcut.Description = "11111";
shortcut.TargetPath = Application.StartupPath + @"\OnlyRunOneEXE.exe";
shortcut.Save();
#endregion
龙腾一族至尊龙骑
本文共计131个文字,预计阅读时间需要1分钟。
1. 在项目中添加引用,Project -> Add Reference -> COM Windows Script Host Object Model.
2.添加命名空间,using IWshRuntimeLibrary;
1、在项目中添加引用,Project>Add Reference>COM>Windows Script Host Object Model.
2、添加
using IWshRuntimeLibrary;
#region 创建快捷方式
WshShell wshShell = new WshShell();
string path = System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory), "哈哈哈.lnk");
IWshShortcut shortcut = (IWshShortcut)wshShell.CreateShortcut(path);
shortcut.Description = "11111";
shortcut.TargetPath = Application.StartupPath + @"\OnlyRunOneEXE.exe";
shortcut.Save();
#endregion
龙腾一族至尊龙骑

