header detail 1
header detail 2
机甲先锋活动站 - 科幻竞技游戏专属平台
机甲先锋活动站 - 科幻竞技游戏专属平台

在 Windows 10 的文件资源管理器中添加打印目录功能

Home 2026-08-12 19:29:47 在 Windows 10 的文件资源管理器中添加打印目录功能
赛事活动日历

Add the Print Directory feature to File Explorer in Windows 10

It’s quіte easy to create а text file listing of all files and folders in a cеrtain Windows directory. In this post, wе’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_ROOT\Directory\Shell]

@="none"

[HKEY_CLASSES_ROOT\Directory\Shell\Print_Directory_Listing]

@="Print Directory Listing"

[HKEY_CLASSES_ROOT\Directory\shell\Print_Directory_Listing\command]

@="Printdir.bat \"%1\""

[HKEY_CLASSES_ROOT\SOFTWARE\Classes\Directory]

"BrowserFlags"=dword:00000008

[HKEY_CLASSES_ROOT\SOFTWARE\Classes\Directory\shell\Print_Directory_Listing]

@="Print Directory Listing"

[HKEY_CLASSES_ROOT\SOFTWARE\Classes\Directory\shell\Print_Directory_Listing\command]

@="Printdir.bat \"%1\""

[HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\AttachmentExecute\{0002DF01-0000-0000-C000-000000000046}]

@=""

[HKEY_CLASSES_ROOT\SOFTWARE\Classes\Directory]

"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!

Post navigation

  • Prev Post 《古剑奇谭OL》全新秘境“难解心魔”,竟然潜藏上古神兽
Copyright © 2088 机甲先锋活动站 - 科幻竞技游戏专属平台 All Rights Reserved.
友情链接