Can I do this with the for command like this?
@echo off
set "var=333ps555psssword=123 456 789"
for /f "tokens=1* delims=psssword" %%i in ("%var%") do set str=%%i&set num=%%j
echo %str% %num%
pause
My original intention was
Set str=333ps555
num==123 456 789
But the result is
str=333
num=555psssword=123 456 789
Why does the result of my run use p or s as the delimiter instead of psssword?
[ Last edited by 26933062 on 2007-8-13 at 12:13 AM ]
@echo off
set "var=333ps555psssword=123 456 789"
for /f "tokens=1* delims=psssword" %%i in ("%var%") do set str=%%i&set num=%%j
echo %str% %num%
pause
My original intention was
Set str=333ps555
num==123 456 789
But the result is
str=333
num=555psssword=123 456 789
Why does the result of my run use p or s as the delimiter instead of psssword?
[ Last edited by 26933062 on 2007-8-13 at 12:13 AM ]
致精致简!
