wince c# 创建桌面快捷方式
来源:互联网 发布:网络教育认证 编辑:程序博客网 时间:2024/05/01 20:25
static void Create()
{
string PathGPRS = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) + "\\AppCenter.exe";
string PathGPRSTrue = @"/Windows/Desktop/AppCenter.exe.lnk";
if (!File.Exists(PathGPRSTrue))
{
//File.Copy(PathGPRS, PathGPRSTrue, true);
try
{
string text = (PathGPRS.Length + 2).ToString() + "#\"" + PathGPRS + "\"";
byte[] buf = new byte[text.Length];
buf = System.Text.Encoding.GetEncoding(936).GetBytes(text.Substring(0, text.Length));
FileStream fs = new FileStream(PathGPRSTrue, FileMode.CreateNew);
fs.Write(buf, 0, buf.Length);
fs.Close();
fs = null;
}
catch (System.Exception ex)
{
}
}
}
如上测试正常。
- wince c# 创建桌面快捷方式
- WinCE创建桌面快捷方式
- wince创建桌面快捷方式
- wince 在桌面创建快捷方式
- WINCE在桌面创建快捷方式
- C#创建桌面快捷方式
- C#如何编程在桌面创建快捷方式
- C# 创建一个application的桌面快捷方式
- winCE各默认目录路径 创建桌面快捷方式
- Wince开发之桌面快捷方式
- WinCE创建快捷方式
- WINCE创建快捷方式
- 创建锁定桌面快捷方式
- 创建桌面快捷方式
- 创建linux桌面快捷方式
- 如何创建桌面快捷方式
- DELPHI创建桌面快捷方式
- ubuntu 创建桌面快捷方式
- 屏蔽超链接<a>跳转事件
- Matrix hdu 2119 最小点覆盖
- varchar2和varchar的区别
- C++宏定义详解
- java基础加强--动态代理技术
- wince c# 创建桌面快捷方式
- Java Collection
- 《算法导论》公开课--排序算法笔记
- VA01 SO 用户出口 User Exits In Sales Document Processing
- DataTable行列转置
- Spring MVC 教程,快速入门,深入分析
- 01背包,饭卡问题
- Spring MVC中的线程池ThreadPoolTaskExecutor
- 内存管理(2014.02.19)