ACAT.Lib.Core.Utility.FileUtils.Run C# (CSharp) Метод

Run() приватный Метод

private Run ( String executable ) : bool
executable String
Результат bool
        public static bool Run(String executable)
        {
            bool retVal = true;

            Log.Debug(executable);

            var startInfo = new ProcessStartInfo();
            startInfo.FileName = executable;

            //Start the process.
            try
            {
                Process.Start(startInfo);
            }
            catch (Exception e)
            {
                Log.Error("Error executing " + executable + ". Exception: " + e);
                return false;
            }

            Log.Debug("Returning " + retVal);

            return retVal;
        }