0
在一个目录中,我想将每个文件名都存入一个变量,然后将变量回显到屏幕上。获取变量中的文件名并回显它们
REM Example 1 works but does not put filename in variable
FOR %%F in (*.*) do (
echo %%F
)
REM Example 2 here I try to put the filename into a variable named x but when I run it it only displays the filename of
FOR %%F in (*.*) do (
set x=%%F
echo %x%
)
我该如何解决这个问题?
...一百万的问题[延迟扩展(http://ss64.com/nt/delayedexpansion.html)... – aschipfl