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

Win7 如何快速列印資料夾檔案清單?兩種方法教學

編輯:Windows 7 系統介紹

想列印資料夾內所有檔名清單?Win7 無直接列印目錄功能,但可用 dir 指令導出文字檔或建立批次檔加入「傳送到」選單,一鍵列印。

方法一:指令導出文字檔 (臨時需求)

  1. 在目標資料夾按 Shift+右鍵 →「在此處開啟命令視窗」 (或 Win+R cmd 切換目錄)。
  2. 輸入 dir > filelist.txt → Enter,資料夾產生 filelist.txt 含所有檔名。
  3. 用記事本開啟列印即可。

方法二:建立批次檔加入「傳送到」 (長期使用)

  1. 記事本貼上以下內容,存為 Printdir.bat:
@echo off
dir %1 /-p /o:gn > "%temp%\Listing"
start /w notepad /p "%temp%\Listing"
del "%temp%\Listing"
exit
  1. 複製 Printdir.bat 到 C:\Windows。
  2. Win+R → %APPDATA%\Microsoft\Windows\SendTo → 將 Printdir.bat 捷徑放入 (或直接複製 .bat)。

之後右鍵任何資料夾 →「傳送到」→「Printdir」即自動開啟記事本列印該資料夾清單。

Copyright © Windows教程網 All Rights Reserved