萬盛學電腦網

您现在的位置: 萬盛學電腦網 >> 作業系統 >  >> Windows 7 教學

Windows 7 新增「列印目錄」到右鍵「傳送至」選單

需列印資料夾內所有檔案清單時,Windows 7 可透過簡單設定,在右鍵「傳送至」選單新增「列印目錄清單」功能,一鍵完成。

方法一:臨時指令列印 (一次性需求)

  1. 開啟命令提示字元 (管理員),cd 至目標資料夾。
  2. 執行 dir > contents.txt。
  3. 開啟產生的 contents.txt 列印即可。

方法二:永久加入右鍵選單 (長期使用)

步驟 1:建立批次檔 Printdir.bat

@echo off
dir %1 /-p /o:gn > "%temp%\Listing"
start /w notepad /p "%temp%\Listing"
del "%temp%\Listing"
exit

儲存至 C:\Windows (需管理員權限)。

步驟 2:建立「傳送至」捷徑

  1. Win+R 輸入 %APPDATA%\Microsoft\Windows\SendTo。
  2. 右鍵空白處 → 「新增」 → 「捷徑」。
  3. 項目位置輸入 %windir%\Printdir.bat,名稱設為「列印目錄清單」。

使用方式

右鍵任意資料夾 → 「傳送至」 → 「列印目錄清單」,記事本自動開啟列印對話方塊,確認即可列印。

copyright © 萬盛學電腦網 all rights reserved