) + '\t';
}
WSH.Echo(str);
}
@if(0)==(0) echo off
For f = 1 to 441
For z = 1 to 100
type e:\数据1\" & Right("00" & f, 3) & "\" & Right("00" & z, 3) & ".txt | cscript //nologo //e:jscript "%~f0" > e:\数据2\ "& Right("00" & f, 3) & "\" & Right("00" & z, 3) &" .txt
pause & exit
@end
......
Next
Next
作者: idwma 时间: 2022-11-3 18:31
bat部分的循环大概像这样,数字前面补0的方法可以搜一下论坛呀- @if(0)==(0) echo off
- for /l %%f in (1,1,441) do (
- for /l %%z in (1,1,100) do (
- type "e:\数据1\%%f\%%z.txt" | cscript //nologo //e:jscript "%~f0" > "e:\数据2\%%f\%%z.txt"
- ))
- pause & exit
- @end
复制代码
欢迎光临 批处理之家 (http://bbs.bathome.net/) |
Powered by Discuz! 7.2 |