// 获取缓存路径,并把单斜杠转为双斜杠\ ;
var CacheFilePath = app.preferences.getPrefAsString("Disk Cache Controls", "Folder 7")+"\Adobe*";
var FullCacheFilePath = CacheFilePath.split('\').join("\\");

// 清理这些文件夹
system.callSystem('cmd.exe /c "for /d %a in ("'+FullCacheFilePath+'") do rmdir "%a" /s /q"');

Leave a Reply

Your email address will not be published.