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复制代码
TOP
leap 当前离线
三级士官
原帖由 coobe 于 2010-9-7 16:45 发表 A1 @echo off set str=i love,bbs;bathome.cn for %%i in (%str:.=,%) do echo %%i pause
@echo off set str=i love,bbs;bathome.net for %%i in (%str%) do echo %%i pause>nul 显示结果是: i love bbs bathome.net复制代码
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复制代码
@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复制代码
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复制代码
poxi 当前离线
二级士官
@echo off set str=I love,bbs;bathome.net for %%i in (%str:~-3%) 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复制代码
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复制代码
Bat289652312 当前离线
rivch 当前离线
一级士官
@echo off set str=I love,bbs;bathome.net for /f "tokens=1-5 delims=,;. " %%a in ("%str%") do ( echo %%a echo %%b echo %%c echo %%d echo %%e ) pause>nul复制代码
@echo off set str=I love,bbs;bathome.net for /f "tokens=5 delims=,;. " %%a in ("%str%") do ( echo %%a ) pause>nul复制代码
middlelaw 当前离线
@echo off set str=I love,bbs;bathome.net for /f "delims=,;.= tokens=1-5" %%i in ("%str%") do echo %%i %%j %%k %%l %%m pause复制代码
@echo off set str=I love,bbs;bathome.net for /f "delims=. tokens=1,*" %%i in ("%str%") do echo %%j pause复制代码
mangci 当前离线
@ echo set str=I love,bbs;bathome.net for /f "tokens=1-5 delims=,;. " %%i in ("%str%") do ( echo,%%i echo,%%j echo,%%k echo,%%l echo,%%m ) echo,%%m pause复制代码
1.@ echo off set str=I love,bbs;bathome.net for /f "delims=,;. tokens=*" %%i in ("%str%") do ( echo,%%i echo,%%j echo,%%k echo,%%l echo,%%m ) pause 复制代码
sotary 当前离线
@echo off set str=I Love,bbs;bathome.cn for /f "delims=,;. tokens=4" %%a in (%str%) do echo %%a pause复制代码
@echo off set str=I love,bbs;bathome.cn for %%a in (%str%) do echo %%a pause复制代码