|
test.txt内容- 123','00008001','
- 111','00008001','
- 222222','00008001','
复制代码 @echo off
setlocal ENABLEDELAYEDEXPANSION
if exist Test.txt cd.>Conver.txt
for /f "delims=" %%i in (Test.txt) do (
set Str=%%i
set Atr=!str:~0,-3!
set Btr=!Str:~-2!
echo !Atr!'^)!btr!>>Conver.txt
)
if exist Conver.txt start Conver.txt
[ 本帖最后由 haiou327 于 2011-5-7 13:54 编辑 ] |
|