for /f %%i in ('dir /a:-d /s /b "%ProgramFiles%"') do ( echo "%%i" pause )for /f %%i in ('dir /a:-d /s /b "%ProgramFiles%"') do (echo "%%i"pause)本来应该返回显示出C:\Program Files文件夹里的文件,可我这显示成这样C:\Documents and

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/24 12:31:04
for/f%%iin(''dir/a:-d/s/b"%ProgramFiles%"'')do(echo"%%i"pause)for/f%%iin(''dir/a:-d/s/b"%ProgramFiles%"

for /f %%i in ('dir /a:-d /s /b "%ProgramFiles%"') do ( echo "%%i" pause )for /f %%i in ('dir /a:-d /s /b "%ProgramFiles%"') do (echo "%%i"pause)本来应该返回显示出C:\Program Files文件夹里的文件,可我这显示成这样C:\Documents and
for /f %%i in ('dir /a:-d /s /b "%ProgramFiles%"') do ( echo "%%i" pause )
for /f %%i in ('dir /a:-d /s /b "%ProgramFiles%"') do (
echo "%%i"
pause
)
本来应该返回显示出C:\Program Files文件夹里的文件,
可我这显示成这样
C:\Documents and Settings\Administrator>for /F %i in ('dir /a:-d /s /b "C:\Program Files"') do (
echo "%i"
pause
)
C:\Documents and Settings\Administrator>(
echo "C:\Program"
pause
)
"C:\Program"
请按任意键继续. . .
这是哪错了

for /f %%i in ('dir /a:-d /s /b "%ProgramFiles%"') do ( echo "%%i" pause )for /f %%i in ('dir /a:-d /s /b "%ProgramFiles%"') do (echo "%%i"pause)本来应该返回显示出C:\Program Files文件夹里的文件,可我这显示成这样C:\Documents and
Program"