CODE: [Copy to clipboard]
@echo off
regedit /e "%temp%\bak.reg" "HKEY_CURRENT_USER\Control Panel\International"
>aDate.reg echo REGEDIT4
>>aDate.reg echo.
>>aDate.reg echo [HKEY_CURRENT_USER\Control Panel\International]
>>aDate.reg echo "sShortDate"="yyyy-MM-dd"
>>aDate.reg echo "sDate"="-"
>tmp.vbs echo Wscript.echo FormatDateTime (DateAdd("d",-30,Date),2)
for /f "delims=" %%i in ('cscript.exe //nologo tmp.vbs') do set aDate=%%i
del tmp.vbs
for /f "tokens=1,4" %%i in ('dir /s/a-d/ta "歌库\*"^|findstr /i ".dat .vob .mpg"') do if %%i lss %aDate% del /s/q/f "歌库\%%j" 2>nul
regedit /s aDate.reg
del aDate.reg
pause