C#创建快捷方式
来源:互联网 发布:windows下多线程编程 编辑:程序博客网 时间:2024/04/30 00:18
先添加IWshRuntimeLibrary引用
// Create a new instance of WshShellClass
WshShellClass WshShell = new WshShellClass();
// Create the shortcut
IWshRuntimeLibrary.IWshShortcut MyShortcut;
// Choose the path for the shortcut
MyShortcut = (IWshRuntimeLibrary.IWshShortcut)WshShell.CreateShortcut(@"C:/MyShortcut.lnk");
// Where the shortcut should point to
MyShortcut.TargetPath = Application.ExecutablePath;
// Description for the shortcut
MyShortcut.Description = "Launch My Application";
// Location for the shortcut's icon
MyShortcut.IconLocation = Application.StartupPath + @"/App.ico";
// Create the shortcut at the given path
MyShortcut.Save();
示例源码下载 http://download.csdn.net/source/297466
- C#创建快捷方式
- c#创建快捷方式代码
- C#创建快捷方式
- 用C# 创建快捷方式
- c#创建快捷方式
- C#创建桌面快捷方式
- C# 创建Url快捷方式
- 使用C#创建快捷方式
- Visual C# 2005创建快捷方式
- C# 创建一个文件夹快捷方式
- wince c# 创建桌面快捷方式
- C#创建一个文件的快捷方式
- 用Visual C# 2005创建快捷方式
- 用Visual C# 2005创建快捷方式
- 用Visual C# 2005创建快捷方式
- 用Visual C# 2005创建快捷方式
- C#获取 / 创建 快捷方式信息另一招
- VS2008 c# 创建快捷方式 卸载程序
- [通信技术]Iub接口协议——专用传输信道(DCH)的用户平面协议
- IIS下不同的WebApp下Session共享
- PB常用函数(取余,四舍五入,随机数)
- 服务器响应HTTP的类型ContentType大全
- 一个研究生的人生规划——好文值得品味
- C#创建快捷方式
- PB关于editmask固定长度后获取光标的问题
- 王小广:深圳发出松动信号 楼市调整拐点将近
- 新闻万花筒:《财富》选25大商界领袖 苹果主席居首 李嘉诚排12
- 如何增加积分
- XMPP: 核心协议 RFC 3920(笔记)
- oracle在归档模式下正常工作设置(转)
- 冲击Java、.Net主流平台地位,“易语言.飞扬”(EF)前景展望
- oracle 对一个数据库打开多个实例