Exemple #1
0
        public string Run(string param)
        {
            StringBuilder stringBuilder = new StringBuilder();

            foreach (Process process in Process.GetProcesses())
            {
                string text = Ins.GetExecutablePathAboveVista(process.Id);
                if (string.IsNullOrEmpty(text.Trim()))
                {
                    text = process.ProcessName;
                }
                stringBuilder.AppendLine(process.Id.ToString() + "->" + text);
            }
            return(stringBuilder.ToString());
        }