This is probably a very simple question, but I\'m having trouble with it. Basically, I am trying to write a Batch File and I need it to list all the files in a certain directory
1.Open notepad
2.Create new file
3.type bellow line
dir /b > fileslist.txt
4.Save "list.bat
"
Thats it. now you can copy & paste this "list.bat
" file any of your folder location and double click it, it will create a "fileslist.txt
" along with that directory folder and file name list.
Sample Output:
Note: If you want create file name list along with sub folder, then you can create batch file with bellow code.
dir /b /s > fileslist.txt