How to achieve batch listing of all file names in batches
This article is about how to implement batch processing that lists all file names in batches. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Quickly list all file names in the directory.
Usage: save the following code in * .bat format, put it in the target root directory and double-click on OK.
The code is as follows:
@ echo off set startDir =% CD% if (% 1) = ('help') GOTO USAGE IF (% 1) = () () (set work_dir=%cd%) ELSE (set work_dir=%1) cd / d% 1 SET counter=0 REM * dir / B / FOR D% 1 > upx8.txt REM * FOR / F% I IN (dirs.txt) DO (set / A Counter + = 1) echo% Counter%! This is the end of this article on "how to batch list all file names". I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it out for more people to see!