首页  ·  知识 ·  移动开发
WindowsMobile启动自带程序处理文件
网友   http://hi.baidu.com/adnroidorg/home  Wphone  编辑:dezai   图片来源:网络
private static void StartProcess(string FileName, string sPath) { try { if

private static void StartProcess(string FileName, string sPath)
{
try
{
if (!System.IO.File.Exists(FileName))
return;
System.Diagnostics.Process myProcess = new System.Diagnostics.Process();
myProcess.StartInfo.UseShellExecute = false;
myProcess.StartInfo.FileName = FileName;
myProcess.StartInfo.Arguments = sPath;
myProcess.Start();
myProcess.WaitForExit();
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}

 

启动程序

StartProcess(@"\Windows\tMail.exe");

本文作者:网友 来源:网络 http://hi.baidu.com/adnroidorg/home
CIO之家 www.ciozj.com 微信公众号:imciow
    >>频道首页  >>网站首页   纠错  >>投诉
版权声明:CIO之家尊重行业规范,每篇文章都注明有明确的作者和来源;CIO之家的原创文章,请转载时务必注明文章作者和来源;
延伸阅读