Add a Create File List entry to the right click Context Menu for File Explorer. It calls a batch file (.bat) that creates a list of all the files in a folder and writes it to a file in the default temp directory, then opens notepad with that file and then deletes the file. Just tested it on my Win 10 Pro X64 system and it works great.
Information
If you want to keep the GenFIleList.txt file around for awhile, remove & del %temp%\GenFileList.txt from the end of the line in the batch file.
Here is the batch file I use. You can change it to do whatever you need.
dir /a /-p /o:gen %1 >%temp%\GenFileList.txt & notepad %temp%\GenFileList.txt & del %temp%\GenFileList.txt
To create the batch file:
- Select the above line of text.
- Press [Ctrl+C] to copy it to the Clipboard.
- Open Notepad and press [Ctrl+V] to pastes it into the Notepad window.
- Click on [File] then [Save as].
- Make the name "GenFileList.bat", including the double quotes so Windows 10 doesn't add .txt to the end.
- Place Genfilelist.bat in c:\users\yourname folder.
Here is the .reg file I use.
- You need to change yourname to your account name in two places.
- Set the isLink\command lines @= entry in the reg file to the path you created GenFileList.bat in, for example:
c:\users\yourname\GenFileList.bat
==================================================================================================== ===
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\isLink]
@="Create File List"
"Extended"=""
[HKEY_CLASSES_ROOT\*\shell\]
@=""c:\\users\\yourname\\GenFileList.bat" "%1""
[HKEY_CLASSES_ROOT\Directory\shell\isLink]
@="Create File List"
"Extended"=""
[HKEY_CLASSES_ROOT\Directory\shell\isLink\command]
@=""c:\\users\\yourname\\GenFileList.bat" "%1""
==================================================================================================== ===
Select all the
red text between the ======================='s
Press [Ctrl+C] to copy it to the Clipboard.
Open Notepad and press [Ctrl+V] to pastes it into the Notepad window.
Click on [File] then [Save as].
Make the name "
AddGenFileList.reg", including the double quotes so Windows 10 doesn't add .txt to the end.
Place
AddGenFileList.reg in the same folder you put
Genfilelist.bat in.
Now double click on
AddGenFileList.reg to add it's data to the registry. Click Yes or OK as necessary.
To use, do the following:
Open File Explorer and navigate to the folder you want the file list for. Right click on it and select [Create File List].
Notepad will open with the list of files and folders contained in the folder you chose. You can edit it or do whatever you
want with the data as well as print it.