I often want to copy all the file names with full path and extensions in a folder to a ".txt" document but can't. Is there an easy way to do this? How? Is there a simple batch file that will do it? Freeware might work, but I would rather have a simple batch.bat or .exe file that works.
Windows – How to copy all file names in a folder to notepad
windows
Best Answer
Open up a command prompt
Navigate to the directory you want with
cd "Documents"
dir /B > filelist.txt
Open filelist.txt or move it where you want.
My output:
You can limit to just files with
dir /B /A-D
. /AD meaning only directories, /A-D means not directories.