刪除超過33天的文件
ForFiles /p "G:\Ensky\Jaeger\FATP" /s /d -33 /c "cmd /c del /Q @file"ide
Pending how to remove empty folder? If add /s after del /Q /S, will delete all the files in subfolder.rem
同步NTP時間
C:\Users\sim>net time \\10.10.10.10 /set /y
Current time at \\10.10.10.10 is 4/24/2020 3:55:38 PMcmd
刪除當前目錄下的空文件夾
@echo off
for /f "delims=" %%a in ('dir . /b /ad /s ^|sort /r' ) do rd /q "%%a" 2>nul同步