想快速列印某資料夾下的所有檔案清單?Win7 可透過建立批次檔並加入「傳送至」選單,實現右鍵一鍵列印目錄功能。
@echo off
dir %1 /-p /o:gn > "%temp%\Listing"
start /w notepad /p "%temp%\Listing"
del "%temp%\Listing"
exit
Printdir.bat 到 C:\Windows(需系統管理員權限)。
shell:sendto 開啟「傳送至」資料夾。%windir%\Printdir.bat,下一步命名為「列印目錄清單」,完成。之後對任何資料夾右鍵 → 「傳送至」→「列印目錄清單」,記事本會自動開啟並列印該資料夾檔案清單。