Print all the files inside a dir through batch file
I want to write a batch file in DOS which reads all the files from the input directory and display the开发者_Go百科 list of files on the screen using FOR loop.
dir
for the files in the directory
dir /s
if you want to include the files in the sub-directories.
microsoft command line reference
edit:
FOR %%i IN (*.*) DO echo %%i
This will print out the names of all the files in the directory you run the batch file in.
精彩评论