how to get list folder in cmd to value
for /f "eol=: delims=" %%F in ('dir /b /o:n') do set /p =""%%F","@echo off
setlocal disableDelayedExpansion
set "files=."
for /r %%F in (*) do (
setlocal enableDelayedExpansion
for /f "delims=" %%A in ("!files!") do (
endlocal
set "files=%%A "%%F"
)
)
(set files=%files:~2%)
@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!
Also in C++:
- libracad ubuntu
- how to install nvm
- rename computer ubuntu 20.04
- npm whatchers
- cambiare luminosità schermo ubuntu
- setup apollo server express
- ubuntu terminal how to copy and move file
- command to split tags
- docker engine install ubuntu
- hash sum mismatch ubuntu 20.04
- pm2 remove id
- E: Unable to locate package wsl
- enable ufw ubuntu
- linux grt repository
- install handbrake ubuntu
- ubuntu certbot nginx
- certbot remove certificate nginx
- dialog shell script example
- find jpg or png
- is installed in '/home/agent1409/.local/bin' which is not on PATH
- what is digital marketing
- how to add text to promt in linux
- verificaçao ficheiro linux bash
- install php ubuntu 20.04