- @echo off&setlocal enabledelayedexpansion
- for /f "tokens=1,2" %%a in ('mshta "http://bathome.net/s/hta/?%random%&load=+moment" "moment().add(1,'d').lang('zh-cn').format('MM月DD日 星期dd')"') do set dt=%%a
- (for %%a in (*.txt) do (
- set "line1="
- set "line2="
- (set /p line1=&set /p line2=)<"%%a"
- for /f "tokens=1* delims=: " %%b in ("!line1!") do (
- if %%b==channel if %%c neq %%~na echo %%a&set "line2=%dt%"
- )
- if !line2! neq !dt! echo %%a
- ))>Mismatch.log
复制代码
|