import process.popen;
import console;
var cmds={'@echo off';
'echo 正在清除系统垃圾文件,请稍等……';
'del /f /s /q %systemdrive%\\*.tmp';
'del /f /s /q %systemdrive%\\*._mp';
'del /f /s /q %systemdrive%\\*.gid';
'del /f /s /q %systemdrive%\\*.chk';
'del /f /s /q %systemdrive%\\*.old';
'del /f /s /q %systemdrive%\\*.xlk';
'del /f /s /q %systemdrive%\\*.log';
'del /f /s /q %windir%\\*.bak';
'del /f /s /q %systemdrive%\\recycled\\*.*';
'del /f /s /q %windir%\\temp\\*.*';
'del /f /s /q %windir%\\prefetch\\*.*';
'del /f /a /q %systemdrive%\\*.sqm';
'del /f /s /q %windir%\\SoftwareDistribution\\Download\\*.*';
'del /f /s /q "%userprofile%\\cookies\\*.*"';
'del /f /s /q "%userprofile%\\recent\\*.*"';
'del /f /s /q "%userprofile%\\local settings\\temporary internet files\\*.*"';
'del /f /s /q "%userprofile%\\local settings\\temp\\*.*"';
'del /f /s /q "%userprofile%\\AppData\\Local\\temp\\*.*"';
'del /f /s /q "%userprofile%\\AppData\\Local\\Microsoft\\Windows\\Caches\\*.*"';
'del /f /s /q "%userprofile%\\AppData\\Local\\Microsoft\\Windows\\INetCache\\*.*"';
'echo 清除系统垃圾文件完成!';
'echo. & pause'}
for(i=1;#cmds;1){
var p = process.popen.cmd(cmds[i])
for(ok,out,err in p.each()){
console.log(out);
console.log(err);
//console.log(out,err);/*读取进程输出直到进程关闭*/
//mainForm.edit.text += out +'\r\n';
}
}
console.pause();
主题数 25 | 今日评论 0 | 今日主题 0 |