📌  相关文章
📜  如何在 cmd 中获取列表文件夹的值 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:32.680000             🧑  作者: Mango

代码示例3
@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!