Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Windows 7 一鍵列印資料夾目錄:臨時命令法與右鍵「傳送到」永久法

編輯:Windows 7 系統介紹

需列印資料夾完整檔案清單?Win7 提供兩種方案:

方法一:一次性命令列印(無需永久修改)

  1. 以管理員身分開啟 CMD,cd 至目標資料夾。
  2. 執行 dir > contents.txt,生成 contents.txt。
  3. 用記事本開啟列印即可。

方法二:加入右鍵「傳送到」永久功能(推薦)

  1. 建立 Printdir.bat(記事本貼上下列內容存為 ANSI 編碼):
    @echo off
    dir %1 /-p /o:gn > "%temp%\Listing"
    start /w notepad /p "%temp%\Listing"
    del "%temp%\Listing"
    exit
  2. 將 Printdir.bat 放入 C:\Windows(需管理員權限)。
  3. Win+R → %APPDATA%\Microsoft\Windows\SendTo → 右鍵新增捷徑 → 位置輸入 %windir%\Printdir.bat → 命名「列印目錄清單」。

之後右鍵任意資料夾 →「傳送到」→「列印目錄清單」,自動生成並喚出列印對話框,極致便利。

Copyright © Windows教程網 All Rights Reserved