windows - Create a batch file that reads all the text files contained in current directory -


the essence of task in description, far have code reading file. cycle can not put loop in batch

@echo off  /f "tokens=* delims=" %%x in (text1.txt) echo %%x  pause 

it's simpler that:

@echo off %%a in (*.txt) echo %%a pause 

Comments