本帖最后由 CrLf 于 2014-7-29 02:59 编辑
- @echo off&setlocal enabledelayedexpansion
- set n=100
- for /l %%a in (0 1 99) do set /a $!n:~1!=1,n+=1
-
- for %%a in (*.txt) do (
- set "str= "
- setlocal
- for /f "delims=" %%b in (%%~snxa) do (
- for %%c in (%%b) do set "$%%c="
- )
- for /f "delims==$" %%b in ('set $ ') do set str=!str! %%b
- echo !str:~2!
- endlocal
- )>"c:\文件夹2\%%~nxa"
- pause
复制代码
|