李sir_Blog

博客园 首页 联系 订阅 管理

2012年8月7日

摘要: 一、C#创建快捷方式要创建快捷方式须引用IWshRuntimeLibrary.dll,引用方式为:对项目添加引用——>选择COM组件——>选择"Windows Script Host Object Model"确定,则添加成功!接下来就是编码:[c-sharp] view plaincopyprint?///<summary> ///生成快捷方式 ///</summary> ///<paramname="targetPath">原目标位置</param> //////<paramname= 阅读全文
posted @ 2012-08-07 14:43 李sir 阅读(1131) 评论(1) 推荐(0)

摘要: 如果您的站点设置了favicon.ico,那么正常情况下该站点创建出来的快捷链接图标将是favicon.ico,如图:using System.Runtime.InteropServices; using IWshRuntimeLibrary;// 添加引用:COM下Windows Script Host Object Model public bool Createlnk() { string app = "http://hi.baidu.com/cqjfb"; string location1 = System.Environment.GetFolderPath(Sys 阅读全文
posted @ 2012-08-07 14:41 李sir 阅读(2467) 评论(0) 推荐(0)