@if(0)==(0) echo off
title 中共打码文件备份 by J
rem 获取当前
set d=%date:~0,4%%date:~5,2%%date:~8,2%
rem 中共打码文件路径
rem 判断路径
for /f "delims=" %%i in ('cscript -nologo -e:jscript "%~f0"') do (
echo %%i
rem
)
rem echo 完成时间:>>D:\scan_log\DamajietuFiles_log.txt
rem date /t>>D:\scan_log\DamajietuFiles_log.txt && time /t>>D:\scan_log\DamajietuFiles_log.txt
rem echo ------------------------------------------------->>D:\scan_log\DamajietuFiles_log.txt
pause
rem exit /b & @end
for(var i=1;i<=30;i++) {
var now = new Date();
now.setDate(now.getDate() - i);
var y = now.getFullYear();
var m = now.getMonth();
var d = now.getDate();
var m = m+1<10 ? "0" + (m + 1) : m + 1;
var d = d<10 ? "0" + d : d;
WSH.Echo(y+""+m+""+d);
}