A1:- @echo off
- set str=I love,bbs;bathome.net
- for %%i in (%str%) do ( echo %%i
- pause)
复制代码 A2:- @echo off
- set str=I love,bbs;bathome.net
- for %%i in (%str%) do ( if %%i equ cn echo %%i )
- pause
复制代码
A2:- @echo off
- set str="I love,bbs;bathome.net"
- for /f "delims== tokens=2" %%i in (%str%) do ( echo %%i )
- pause
复制代码
[ 本帖最后由 zgq0301 于 2009-11-13 09:52 编辑 ] |