代码如下:

 

代码
#region 取得windows的所有进程
public static string GetCourse()
{
System.Text.StringBuilder sb
= new System.Text.StringBuilder();
string tempName = "";
int begpos, endpos;
foreach (Process thisProc in System.Diagnostics.Process.GetProcesses())
{
tempName
= thisProc.ToString();
begpos
= tempName.IndexOf("(") + 1;
endpos
= tempName.IndexOf(")");
tempName
= tempName.Substring(begpos, endpos - begpos);
sb.Append(tempName
+ "<br /> ");
}
return sb.ToString();
}
#endregion

 

相关文章:

  • 2022-12-23
  • 2021-06-27
  • 2021-07-21
  • 2022-12-23
  • 2021-11-13
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-21
  • 2021-10-21
相关资源
相似解决方案