zoukankan      html  css  js  c++  java
  • 检查进程是否存在


            /// <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;
                }
            }

  • 相关阅读:
    leetcode41
    leetcode32
    leetcode312
    leetcode10
    leetcode85
    leetcode124
    leetcode301
    leetcode84
    一文读懂机器学习大杀器XGBoost原理
    【干货】机器学习中的五种回归模型及其优缺点
  • 原文地址:https://www.cnblogs.com/lmcblog/p/2596507.html
Copyright © 2011-2022 走看看