萬盛學電腦網

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

Win7 新增「列印目錄」右鍵選單:兩種方法(臨時/永久)

需列印資料夾檔案清單?Win7 可透過指令或永久加入右鍵「傳送到」選單實現。

方法一:指令臨時產生清單文字檔

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

方法二:永久加入右鍵「傳送到」選單(建議)

  1. 建立 Printdir.bat:
    記事本貼上以下內容存為 Printdir.bat 放至 C:\Windows(需管理員權限)
    @echo off
    dir %1 /-p /o:gn > "%temp%\Listing"
    start /w notepad /p "%temp%\Listing"
    del "%temp%\Listing"
    exit
  2. 執行 shell:sendto 開啟「傳送到」資料夾
  3. 新增捷徑 → 位置輸入 %windir%\Printdir.bat → 命名「列印目錄清單」

之後右鍵任意資料夾 → 「傳送到」→ 「列印目錄清單」即可一鍵列印。

copyright © 萬盛學電腦網 all rights reserved