/// <summary>
/// 检查进程是否存在
/// </summary>
/// <param name="Name"></param>
/// <returns></returns>
public static bool IsProcessExitst(string Name)
{
try
{
Process[] psList = Process.GetProcessesByName(Name);
if (psList.Length > 0)
{
return true;
}
else
{
return false;
}
}
catch (Exception)
{
return false;
}
}