Trying to print a directory listing can be a pain. This post will explain how to make it as simple as a right click on a folder.
This has been tested in Windows 7 and 10 but not 8.1.Copy the following code and paste in Notepad.
Notepad must be run as Admin. Make sure that you get all of it. The first line should read
@echo off and the last line should read
exitCode:
@echo off
dir %1 /-p /o:gn > "%temp%\Listing"
start /w notepad /p "%temp%\Listing"
del "%temp%\Listing"
exit
Once the code is in note pad use
Save as to save. Use exactly the following save path. Copy/paste the following to be safe. Yes, the '%' signs are needed.
%windir%\printdir.batNow just run the attached registry hack and you are good to go. Via Windows Explorer, File Explorer or Computer you can now right click on any folder and have the option to print the directory listing for that folder.
As a note this will only work on folders, not an entire drive. However you can select a group of folders.