Force Windows spool file use jobid as its name

本文介绍了如何在Windows系统中禁用打印池功能的方法。针对Windows NT/2000和Windows XP/2003的不同特性,提供了通过修改注册表来关闭打印池功能的具体步骤。适用于希望解决打印文件命名不一致问题的用户。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

On Windows NT/2000 you will find the files by name xxxx.spl where xxxx was the JobID returned by the EnumJobs API. However, Windows XP/2003 create spool files named FPxxxx.spl where xxxx is no longer the JobID.

This is the side effect of file pooling, not a bug. You can “turn off” Spool File Pooling by keeping printed jobs or specify a different spool directory. The workaround to this is as below:
To Turn Off Spool File Pooling on a Per Printer Queue-Basis

   1. Click Start, click Run, type regedit in the Open box, and then click OK.
   2. Locate the following registry subkey, where <printername> is the name of your printer: HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows NT/CurrentVersion/Print/Printers/<printername>
   3. In the right pane, right-click SpoolDirectory, and then click Modify.
   4. In the Value data box, type the location where you want the spool files to be stored. For example, type c:/windows/system32/spool/printers as the default location.
   5. Quit Registry Editor.
   6. Restart the Print Spooler service.

All new jobs will be of the form xxxx.SPL xxxx.SHD and will be numbered consistently with their JobIDs.
To Turn Off Spool File Pooling for All Printers

Note: This method only works on Windows 2003 Server. This method does not work for Windows XP.

   1. Click Start, click Run, type regedit in the Open box, and then click OK.
   2. Locate the following registry subkey: HKEY_LOCAL_MACHINE/System/CurrentControlSet/Control/Print
   3. On the Edit menu, point to New, and then click DWORD Value.
   4. In the New Value #1 box, type DisableServerFilePooling, and then press ENTER.
   5. Right-click DisableServerFilePooling, and then click Modify.
   6. In the Value data box, type 1 to turn off spool file pooling, and then click OK.
   7. Quit Registry Editor.
   8. Restart the Print Spooler service.

All new jobs will be of the form XXXXX.SPL and XXXXX.SHD and will be numbered consistently with their JobIDs.
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值