Bat289652312 当前离线
列兵
TOP
jsls 当前离线
@echo off echo A1: set str=I,love,bbs;bathome.net for %%I in (%str%) do echo %%I echo A2: @echo off set str=I,love,bbs;bathome;net for %%I in (%str%) do echo %%I pause复制代码
guihao 当前离线
@echo off set str=I love,bbs;bathome.net for %%i in (%str%) do cls&echo %%i pause复制代码
@echo off set str=I love,bbs;bathome.net for %%i in (%str%) do set a=%%i echo %a% pause复制代码
@echo off set str=I love,bbs;bathome.net for %%i in (%str%) do echo %%i >a.txt type a.txt& del a.txt pause复制代码
poxi 当前离线
二级士官
@echo off set str=I love,bbs;bathome.net for %%i in (%str:~0,-4%) do echo %%i for %%i in (%str:~-3%) do echo %%i pause复制代码
@echo off set str=I love,bbs;bathome.net for %%i in (%str:~-3%) do echo %%i pause复制代码
jipinshangren (DeathRP)当前离线
三级士官
@echo off set str=i love,bbs;bathome.net for %%i in (%str%) do echo %%i pause复制代码
@echo off set str=i love,bbs;bathome.net set c=net for %%i in (%str%) do echo if %%i=net echo %%i pause复制代码
ccsky_an 当前离线
@echo off set str=I love,bbs;bathome.net for %%i (%str%) do echo %%i复制代码
@echo off set str=I love,bbs;bathome.net for %%i (%str%) do if exist "net" echo %%i复制代码
leap 当前离线
@echo off set str=i love,bbs;bathome.net for %%i in (%str%) do echo %%i pause>nul 显示结果是: i love bbs bathome.net复制代码
原帖由 coobe 于 2010-9-7 16:45 发表 A1 @echo off set str=i love,bbs;bathome.cn for %%i in (%str:.=,%) do echo %%i pause
photonjl 当前离线
上等兵
@echo off for %%i in (I,love,bbs,bathroom,cn) do echo %%i pause复制代码
@echo off for %%i in (I,love,bbs,bathroom,cn) do (if "%%i"=="cn" echo %%i) pause复制代码
lys5300 当前离线
@echo off set str=i love,bbs;bathome.net for /f "tokens=1-5 delims=,;." %%a in ("%str%") do ( echo %%a %%b %%c %%d %%e ) echo. for /f "tokens=2 delims=." %%i in ("%str%") do echo %%i pause>nul复制代码
Hello123World 当前离线
荣誉版主
评分人数
vincentzhou (心囝)当前离线
@echo off echo 先回答问题一 set "str=I love,bbs;bathome.net" for /f "tokens=1,2" %%a in ("%str%") do ( echo %%a for /f "tokens=1-4 delims=,;." %%c in ("%% b") do ( echo %%c echo %%d echo %%e echo %%f ) ) pause cls echo 以下是问题二解答 pause @echo off set "str=I love,bbs;bathome.net" for /f "tokens=1,2" %%a in ("%str%") do ( for /f "tokens=1-4 delims=,;." %%c in ("%% b") do ( echo %%f )复制代码
fflpxc 当前离线
ithinkican 当前离线
we6540 当前离线