set "var=apple pear" echo %var~6,4% REM pear echo %var~0,-5% REM apple
set "var=a,b,c" REM replace commas with spaces echo %var:,= % REM a b c
No comments:
Post a Comment