- @echo off
- rem 保存为ansi,删除第15行中的|
- set "f=d:\另存"
-
- cd /d "D:\SCETC\dataXml\"
- md "%f%" 2>nul
-
- :loop
- for /f "tokens=1-3 delims=/ " %%a in ("%date%") do (
- set d=d:\交易失败流水\%%a%%b%%c
- )
- md "%d%" 2>nul
-
- for /f "delims=" %%i in ('2^>nul dir /b /a-d "*603.xml"') do (
- find "CardLocalFee&|quot;:&|quot;0&|quot;,&|quot;CardLocalPayfee&|quot;:&|quot;0&|quot;" "%%i" 1>nul && copy "%%i" "%d%\"
- move "%%i" "%f%\"
- )
- timeout 1 >nul
- goto :loop
复制代码
|