給你ps1的寫法. PowerShell自動刪除檔案(按照檔案修改日,保留近N天內的檔案) ... ForFiles /p "C:\path\to\folder" /s /d -30 /c "cmd /c del /q @file".
確定! 回上一頁