额……感觉也是哦……不过重定向文本的方法很简便。(我觉得这个方法可能可以解决那个--三列对齐的问题)
别的方法就麻烦喽。
给个生成文本的。- @echo off
- echo,i like the bathome,because here is the batch of the world.>x.x
- for /f "tokens=*" %%a in ('dir x.x /-c ^|find " 字节" ^|find /v ":"') do (
- for /f "tokens=3" %%b in ('echo,%%a') do (
- set /a n=%%b-2
- call echo %%n%%
- del x.x
- )
- )
- pause>nul
复制代码
[ 本帖最后由 523066680 于 2008-8-14 09:06 编辑 ] |