
- 帖子
- 7
- 积分
- 116
- 技术
- 0
- 捐助
- 0
- 注册时间
- 2009-5-4
|
这样可不可以啊
@echo off
set a=今日明月在
for /f "tokens=1 delims=明月在" %%a in ("%a%") do @echo %%a
for /f "tokens=1 delims=今日,在" %%b in ("%a%") do @echo %%b
for /f "tokens=1 delims=今日明月" %%c in ("%a%") do @echo %%c
pause
echo ----------------------------------------------------------------
echo ----------------------------------------------------------------
echo ----------------------------------------------------------------
set a=今日明月在
set var=%a:今日明月=明月今日%
echo %var%
pause |
|