java代码清除IE上面的临时 文件

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

java代码清除IE下面的临时 文件
谁有写过用java代码清除IE的临时文件,麻烦回复一下,急!!!!! IE缓存???java
[解决办法]


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

// block

e.printStackTrace();

}