回复 1# ANSL - @echo off&setlocal enabledelayedexpansion
- (
- for /f "tokens=1-7 delims=^:" %%a in ('type "1.log" ^|find /i "name: "') do (
- set date1=%%f:%%g
- set "date1=!date1: =!"
- for /f "tokens=1 delims=]" %%i in ('echo,!date1!') do (
- echo %%i
- )
- )
- ) >2.log
复制代码
|