Description: |
call:l2a list arr |
Script: |
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13.
|
:l2a list arr -- converts a list to an array
:: -- list [in] - list name
:: -- arr [in] - array name
:$created 20060101 :$changed 20080219 :$categories Array,List
:$source https://www.dostips.com
call set l=,%%%~1%%,
set /a i=0
for /f "delims=" %%a in ('"echo.%l:,=&echo.%"') do (
call set %~2[%%i%%]=%%a
set /a i+=1
)
set %~2=%i%
EXIT /b
|
|