ProcessStartInfo psiOpt = new ProcessStartInfo(@"cmd.exe", @"/C tasklist /fi ""imagename eq notepad*"" /fi ""status eq not responding"" ");
psiOpt.WindowStyle = ProcessWindowStyle.Hidden;
psiOpt.StandardOutputEncoding = Encoding.GetEncoding(866);
psiOpt.RedirectStandardOutput = true;
psiOpt.UseShellExecute = false;
psiOpt.CreateNoWindow = true;
Process procCommand = Process.Start(psiOpt);
StreamReader srIncoming = procCommand.StandardOutput;
label1.Text = srIncoming.ReadToEnd().ToString();
procCommand.Close();
<% if category.subordinates.count >=1 %>
<%= category.subordinates.first.title %>
<% end %>