Hi
I try to create bot that would list all processes in windows so i can check if evrything is runing corecktly. I use c# code bellow.
using System.Diagnostics;
Process[] processlist = Process.GetProcesses();
foreach (Process theprocess in processlist)
{
Console.WriteLine("Process: {0} ID: {1}", theprocess.ProcessName, theprocess.Id);
}
but i get errors
Compile code of Error in action "CS1003" "Syntax error, '(' expected". [Row: 0; Column: 7]
Compile code of Error in action "CS1026" ") expected". [Row: 0; Column: 25]
Also this function should return array how can i save array in to table?
I try to create bot that would list all processes in windows so i can check if evrything is runing corecktly. I use c# code bellow.
using System.Diagnostics;
Process[] processlist = Process.GetProcesses();
foreach (Process theprocess in processlist)
{
Console.WriteLine("Process: {0} ID: {1}", theprocess.ProcessName, theprocess.Id);
}
but i get errors
Compile code of Error in action "CS1003" "Syntax error, '(' expected". [Row: 0; Column: 7]
Compile code of Error in action "CS1026" ") expected". [Row: 0; Column: 25]
Also this function should return array how can i save array in to table?