

CODE: [Copy to clipboard]cd /d "%~dp1"
for /f "delims= eol=" %%i in ('findstr /n .* %1') do (
set "str=%%i"
call set "str=%%str:*:=%%"
call :rn
)
goto :eof
:rn
set/a num+=1
ren "A%num%\B%num%.txt" "%str%.txt"
goto :eof
CODE: [Copy to clipboard][ Last edited by wxcute on 2008-3-23 at 02:42 PM ]cd /d "%~dp1"
for /f "delims= eol=" %%i in ('findstr /n .* %1') do (
set "str=%%i"
call set "str=%%str:*:=%%"
call :rn
)
goto :eof
:rn
set/a num+=1
ren "A%num%\B%num%" "%str%"
goto :eof
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |