// Set at beginning: using System.Diagnostics; using System.Collections.Generic; // -------------- Process p = new Process(); p.StartInfo.UseShellExecute = false; p.StartInfo.CreateNoWindow = true; p.StartInfo.RedirectStandardOutput = true; p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; p.StartInfo.FileName = "wmic"; p.StartInfo.Arguments = "cpu get loadpercentage"; string salida = ""; string[] separator = new string[] {"\n"}; string[] output; p.Start(); salida = p.StandardOutput.ReadToEnd(); p.WaitForExit(); output = salida.Split(separator, StringSplitOptions.None); string carga = output[1].Trim(); // LoadPercentage -> numero BFS.Speech.TextToSpeech(carga + " percent");