Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to get list folder in cmd to value

for /f "eol=: delims=" %%F in ('dir /b /o:n') do set /p =""%%F","
Comment

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%)
Comment

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!
Comment

PREVIOUS NEXT
Code Example
Shell :: android studio not running ios simulator 
Shell :: how to install macos from usb 
Shell :: with which command make file and directory in linux 
Shell :: git create branch 
Shell :: kubernetes setup 
Shell :: how to uninstall a package in react 
Shell :: angular extract i18n 
Shell :: packet tracer 2.7.1 Full Config BC-3 Router 
Shell :: uninstall sharepoint online management shell version 
Shell :: how to see if you have lfs installed ubuntu 
Shell :: how to install rpm package opensuse 
Shell :: meterial ui installesions 
Shell :: powershell equivalent of rm 
Shell :: hanselman pretty prompt 
Shell :: linux check memory occupied by a file and folder 
Shell :: lxc bash script source 
Shell :: git reset deinit and update submodule and re clone all submodules 
Shell :: rsyslogd verify service is running 
Shell :: bash: ng: command not found yarn 
Shell :: No project found at or above and neither was a --path specified 
Shell :: git by nouman 
Shell :: Update local clone and rename branch 
Shell :: reverse serach linux 
Shell :: chrome open in vsc window ubuntu 
Shell :: convert vdi to gnome-boxes 
Shell :: sc windows 
Shell :: android mobile as webcam ubuntu 
Shell :: louch tensorboard on remote server 
Shell :: Change cursor in powershell 
Shell :: Docker - a way to give access to a host USB or serial device 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =