Add the Print Directory feature to File Explorer in Windows 10
It’s quite easy to create a text file listing of all files and folders in a certain Windows directory. In this post, we’ll walk you through the steps to add the print directory feature and enable printing of the directory listing from within File Explorer.
Add Print Directory feature to Explorer
By completing this exercise successfully, you can enable printing of the directory listing from within File Explorer of Windows 10. Refer to the list of instructions given below!
- Create the Printdir.bat file.
- Save the .bat file.
- Launch Notepad.
- Copy-paste the Registry Commands.
- Save the file to Desktop.
- Double-click the saved file to add the registry keys to the Windows registry.
- Click OK and exit.
The method explains to you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Make sure that you follow these steps carefully. Also, we recommend you back up the registry before you modify it. You can restore the registry if a problem occurs.
Click Start, click Run, type notepad, and then click OK.
Paste the following text into Notepad:
@echo off dir %1 /-p /o:gn > "%temp%Listing" start /w notepad /p "%temp%Listing" del "%temp%Listing" exit
Now, go to the File menu in the upper-left corner and select the Exit option from the list.
Then hit the Yes button to save the changes.
When the Save As dialog box appears, type the following text in the File name box – %windir%Printdir.bat
.
When done, hit the Save button.
Now, as recommended by Microsoft, again, open Notepad.
Type the following commands in Notepad.
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOTDirectoryShell] @="none" [HKEY_CLASSES_ROOTDirectoryShellPrint_Directory_Listing] @="Print Directory Listing" [HKEY_CLASSES_ROOTDirectoryshellPrint_Directory_Listingcommand] @="Printdir.bat "%1"" [HKEY_CLASSES_ROOTSOFTWAREClassesDirectory] "BrowserFlags"=dword:00000008 [HKEY_CLASSES_ROOTSOFTWAREClassesDirectoryshellPrint_Directory_Listing] @="Print Directory Listing" [HKEY_CLASSES_ROOTSOFTWAREClassesDirectoryshellPrint_Directory_Listingcommand] @="Printdir.bat "%1"" [HKEY_CURRENT_USERSoftwareMicrosoftWindowsShellAttachmentExecute{0002DF01-0000-0000-C000-000000000046}] @="" [HKEY_CLASSES_ROOTSOFTWAREClassesDirectory] "EditFlags"="000001d2"
Go to the File menu, choose Save As, and select Desktop from the ‘Save in’ list.
Enter PrintDirectoryListing.reg as the file name in the box.
Expand the drop-down menu of the Save As type list and choose All Files.
Then, click Save.
Now, go to your Desktop and double-click the LoggingOn.reg file to add the registry keys to the Windows registry.
Click OK in the message box.
This should help!