回复 1# namejm
A1:- @echo off
- set "str=I love,bbs;bathome.net"
- for /f "tokens=1,2,3,4,5 delims=,;. " %%a in ("%str%") do (
- echo,%%a
- echo,%%b
- echo,%%c
- echo,%%d
- echo,%%e)
- pause>nul
复制代码 A2:- @echo off
- set "str=I love,bbs;bathome.net"
- for /f "tokens=1,2,3,4,5 delims=,;. " %%a in ("%str%") do (
- echo,%%e)
- pause>nul
复制代码
|