开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜