how to get list folder in cmd to value
for /f "eol=: delims=" %%F in ('dir /b /o:n') do set /p =""%%F","
how to get list folder in cmd to value
for /f "eol=: delims=" %%F in ('dir /b /o:n') do set /p =""%%F","
how to get list folder in cmd to value
@echo off
setlocal disableDelayedExpansion
:: Load the file path "array"
for /f "tokens=1* delims=:" %%A in ('dir /s /b^|findstr /n "^"') do (
set "file.%%A=%%B"
set "file.count=%%A"
)
:: Access the values
setlocal enableDelayedExpansion
for /l %%N in (1 1 %file.count%) do echo !file.%%N!
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us