@echo off
for /f "delims=/" %%a in ('dir /s /b *.bat *.txt') do (
more "%%a"
)
作者: proof 时间: 2008-7-23 21:56 Windows ME MS-DOS屏幕信息
F:\RAR>type cc.bat
@echo off
for /f "delims=/" %%a in ('dir /s /b *.bat *.txt') do (
more "%%a"
)
F:\RAR>cc
Syntax error
Invalid file name in command line
Bad command or file name
F:\RAR>dir *.bat
Volume in drive F is 本地磁盘
Volume Serial Number is 0D38-1BF9
Directory of F:\RAR
M BAT 53 09-18-05 0:00 M.bat
CC BAT 83 07-23-08 21:43 cc.bat
2 file(s) 136 bytes作者: proof 时间: 2008-7-23 21:57 FOR %%C IN (*.BAT *.TXT) DO MORE < %%C (报错:File not found)
FOR %%C IN (*.BAT *.TXT) DO TYPE %%C | MORE (满屏不等待)