大网数据广告活动
打印与设备

Print to File without user intervention

· 52CE 我爱测

Describes how to Print to File without user intervention.

This article describes how to Print to File without user intervention.

Original KB number:   2528405

Summary

When choosing the option to Print to File from an application, the user is prompted with a dialog to choose the location and name of the file to be saved. If it is desired to automate the print to file process in such a way as to save the file without user interaction, follow below steps.

More information

Here are the steps to achieve it:

  1. Go to Devices and Printers.
  2. Click on Add Printers.
  3. Click on Add a local or network printer as an administrator.
  4. Click on Add a local printer.
  5. Click on Create a new port: Local Port.
  6. You will get a Port Name Box - Type in Path and the file name. for example, "C:\Temp\PrintJob.txt".
  7. Select the Manufacturer - Generic.
  8. Select Printers - Generic / Text Only.
  9. Select - Use the driver that is currently installed (recommended).
  10. Type a name for the printer.
  11. Share the Printer if needed.
  12. Finish.

After these steps, any print jobs sent to this printer will automatically be saved to the location specified as the port.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- Supported versions of Windows Server · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。