- Make a .bat file.
@echo off
dir %1 /-p /o:gn > “%CD%\dirlist.txt”
exitp%\Listing”
exit - Save .bat file in scripts folder.
- Start Windows Explorer, click Tools, and then click Folder Options.
- Click the File Types tab, and then click File Folder.
- Click Edit, and then click New.
- In the Action box, type Print Directory Listing.
- In Application used to perform action, select the .bat file.
- Open Windows Explorer, right-click the folder that you would like to print a directory listing of, and then click Print Directory Listing.
This is a derivative straight from Microsoft.