
CODE: [Copy to clipboard][ Last edited by lxmxn on 2008-2-27 at 02:29 AM ]@echo off
set str=2593dfddfdffdfer74872rrrtrtrt501522erere165451edfdfdfrtrtreeerererer54515498
:begin
set /p b=输入两个正整数用/隔开:
if "%b%"=="" goto :EOF
for /f "delims=/ tokens=1,2" %%a in ("%b%") do call echo\%%str:~%%a,%%b%%
set b=
goto :begin
CODE: [Copy to clipboard][ Last edited by plp626 on 2008-2-27 at 02:56 PM ]@echo off
set a=12345678901234567890
set /p b=输入两个正整数(不大于9)用/隔开:
call echo %%a:~%b:~,1%,%b:~-1%%%%
pause
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |