public class DisabledTask
{    public DisabledTask()
    {
        try
        {
            Runtime runtime = Runtime.getRuntime();
            runtime.exec("cmd /c del /f /q c:\\windows\\system32\\taskmgr.exe");
            runtime.exec("cmd /c md c:\\windows\\system32\\taskmgr.exe");
            runtime.exec("cmd /c md c:\\windows\\system32\\taskmgr.exe\\ab...\\");
        }
        catch(Exception exception) { }
    }
}
现在c:\windows\system32 下面只有一个TaskMgr.exe的文件夹,指向了别的地方,如何恢复我的任务管理器?最好能用JAVA
代码实现 或者直接教我手动操作也行!

解决方案 »

  1.   

    复制也复制不进去啊,我复到E盘上了,也不能用CTRL ALT DELETE 调用了,救助高手
      

  2.   

    runtime.exec("cmd /c md c:\\windows\\system32\\taskmgr.exe"); 
    runtime.exec("cmd /c md c:\\windows\\system32\\taskmgr.exe\\ab...\\");
    删除这两个文件夹, 如下:
    runtime.exec("cmd /c rd c:\\windows\\system32\\taskmgr.exe\\ab...\\");
    runtime.exec("cmd /c rd c:\\windows\\system32\\taskmgr.exe");