public void KillIdleExcelProcesses()
{
//获取所有Excel进程的列表
var excelProcesses = Process.GetProcessesByName("EXCEL");
foreach (var process in excelProcesses)
{
// 获得进程信息
//try
//{
// double cpuPercent = process.TotalProcessorTime.TotalMilliseconds /
// Environment.TickCount /
// Environment.ProcessorCount * 100 * 100 * 10;
// Response.Write(cpuPercent);
// 获取CPU使用率
// //float cpuPercent = float.Parse(process.TotalProcessorTime.TotalMilliseconds / Environment.TickCount * 100 / Environment.ProcessorCount);
// // 获取内存使用情况(工作集大小,单位:字节)
// long memoryWorkingSet = process.W