回复 10# 5i365
什么软件,如果只支持一条命还可以试试cmd /c "dir"的方式
循环放在一行的问题,举几个例子,不知道这样好不好理解- for /f "delims=" %%i in ('dir /b /ad') do echo a
- echo b
-
- for /f "delims=" %%i in ('dir /b /ad') do echo a&echo b
-
- for /f "delims=" %%i in ('dir /b /ad') do (echo a)&echo b
-
- (for /f "delims=" %%i in ('dir /b /ad') do echo a)&echo b
复制代码
|