G
Guest
I am using the following code to see if a process is currently running. I
want to do something if it is NOT running. I am having trouble testing the
array when no process is runing. Null won't work. Any ideas?
// is process currently running in case someone closed it manually
Process[] myProcesses;
// Returns array containing all instances of EcpKpScript_01.exe
myProcesses = Process.GetProcessesByName("EcpKpScript_01");
myProcesses in debug mode shows "{dimensions[0]}". If this helps.
Thanks
want to do something if it is NOT running. I am having trouble testing the
array when no process is runing. Null won't work. Any ideas?
// is process currently running in case someone closed it manually
Process[] myProcesses;
// Returns array containing all instances of EcpKpScript_01.exe
myProcesses = Process.GetProcessesByName("EcpKpScript_01");
myProcesses in debug mode shows "{dimensions[0]}". If this helps.
Thanks