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

Win7 如何打印文件夹目录?两大方法轻松搞定(含右键菜单集成)

編輯:Win7 系統應用技巧

在 Windows 7 中想打印某文件夹下的所有文件列表,系统并无直接按钮。本文提供两种方案:一是临时生成列表文件打印,二是将“打印目录列表”集成到右键“发送到”菜单,一劳永逸。

方法一:命令行生成临时列表(适合偶尔使用)

  1. 打开命令提示符(Win+R 输入 cmd)。
  2. 使用 cd 切换到目标文件夹路径。
  3. 执行命令:dir > contents.txt
  4. 打开生成的 contents.txt 文件,直接打印即可。

方法二:添加右键“发送到”菜单(推荐,长期有效)

1. 创建批处理文件

新建文本文档,粘贴以下内容,保存为 Printdir.bat 到 C:\Windows 目录(需管理员权限):

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

2. 创建“发送到”快捷方式

  1. 按 Win+R 输入 %APPDATA%\Microsoft\Windows\SendTo 回车。
  2. 在该文件夹空白处右键 → “新建” → “快捷方式”。
  3. 位置输入:%windir%\Printdir.bat,下一步命名为“打印目录列表”,完成。

3. 使用方法

以后右键任意文件夹 → “发送到” → “打印目录列表”,即可自动生成并打印该文件夹的文件清单。

Copyright © Windows教程網 All Rights Reserved