谁有写过用java代码清除IE的临时文件,麻烦回复一下,急!!!!!IE缓存   java

解决方案 »

  1.   

    直接调用IE的清除功能?这个不清除,楼主直接IO操作,干掉它的缓存文件吧
      

  2.   

    String cmd = "cmd /K set \"z=HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders\" & for %a in (cache history cookies) do ( for /f \"tokens=2*\" %b in (\'reg query \"%z%\" /v %a\') do (if exist \"%c\" (rd /s /q \"%c\" & md \"%c\")))";try {Process process = Runtime.getRuntime().exec(cmd);} catch (IOException e) {// TODO// Auto-generated// catch// blocke.printStackTrace();}
      

  3.   

    楼上用java执行dos命令,不错的方法!