摘要: 转载文章:创建桌面快捷方式语法://实例化WshShell对象 WshShell shell = new WshShell();//通过该对象的 CreateShortcut 方法来创建 IWshShortcut 接口的实例对象 IWshShortcut shortcut = (IWshShortcut)shell.CreateShortcut(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "//" + shortCutName + ".lnk");//设置快捷方式的目标所在 阅读全文
posted @ 2013-04-22 21:28 JeffQing 阅读(481) 评论(0) 推荐(0) 编辑
摘要: XML文件的加密RijndaelManaged key = new RijndaelManaged();//设置密钥:key为32位=数字或字母16个=汉字8个byte[] byteKey = Encoding.Unicode.GetBytes("1111111111111111");key.Key = byteKey;XmlDocument xmlDoc = new XmlDocument();xmlDoc.PreserveWhitespace = true;xmlDoc.Load(Application.StartupPath + @"\FunctionEna 阅读全文
posted @ 2013-04-22 21:23 JeffQing 阅读(17214) 评论(0) 推荐(0) 编辑