Answers for "list files in cmd"

2

command line list files

#linux
ls -l

#windows
dir
Posted by: Guest on July-10-2021
0

cmd list files without details

dir /b
Posted by: Guest on August-20-2021
0

how to get list folder in cmd to value

@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%)
Posted by: Guest on October-29-2020
0

how to get list folder in cmd to value

for /f "eol=: delims=" %%F in ('dir /b /o:n') do set /p =""%%F","
Posted by: Guest on October-29-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language