1
I have a directory with files .bat named randomly within each file. bat of this directory have unique names like:
- nome1
- Nome2
- name3
- ...
I also have, within the same directory, a file only.txt. In this file, each line is a name of the ones inside the files with the extension . bat.
I need a command to run through a Windows batch file that checks each of the lines of only.txt and call the . bat file that has this name.
Practical example:
Code from the abc.bat file
echo nome10
File code Xyz.bat
echo nome1
Text in the file only.bat:
nome1
What needs to be executed by the new batch file: call Xyz.bat
your proposal works, but it is extremely slow, every time it scans all the files. bat the directory in search of the content in the file . txt, work with about 10,000 files . bat in this directory, so waiting to find all the names, it is faster to find manual =\
– talnun
@talnun sorry, I don’t have enough knowledge to improve this code
– Wesley