你用下面的代码让系统刷新
public void RefreshSystem()
{
Process[] myProcesses;
myProcesses = Process.GetProcessesByName("explorer");
foreach(Process myProcess in myProcesses)
{
myProcess.Kill();
}
}
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using Microsoft.Win32;
using System.Diagnostics;