开发者

Print all the files inside a dir through batch file

开发者 https://www.devze.com 2023-02-16 11:19 出处:网络
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

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

精彩评论

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

关注公众号