1. Check the name of files in one folder
Dir C:\Users\Desktop\New2 *.txt /B > LIST.txt
2. Check the name of files from one folder as list
@ECHO OFF
tree C:\Users\Desktop\New2 /F > list.txt
Current folder:
@ECHO OFF
tree /F > list.txt
Dir C:\Users\Desktop\New2 *.txt /B > LIST.txt
@ECHO OFF
tree C:\Users\Desktop\New2 /F > list.txt
Current folder:
@ECHO OFF
tree /F > list.txt