public static bool StartApp(string appName,ProcessWindowStyle style)
{
bool blnRst = false;
Process p = new Process();
p.StartInfo.FileName = appName;<<---为什么*.mp3不播放,而*.exe却能执行
p.StartInfo.WindowStyle = style;
try
{
p.Start();
p.WaitForExit();
p.Close();
blnRst = true;
}
catch( Exception ErrMess )
{
string ls = ErrMess.ToString();
ls = ls + "";
}
return blnRst;
}
{
bool blnRst = false;
Process p = new Process();
p.StartInfo.FileName = appName;<<---为什么*.mp3不播放,而*.exe却能执行
p.StartInfo.WindowStyle = style;
try
{
p.Start();
p.WaitForExit();
p.Close();
blnRst = true;
}
catch( Exception ErrMess )
{
string ls = ErrMess.ToString();
ls = ls + "";
}
return blnRst;
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货