打印机 XXXXX.SPL与JobID

一.Force JobID in Spoolfile names

 On Windows NT/2000 find the files by name xxxxx.spl where xxxxx was the JobID returned by the EnumJobs API.

However, XP and 2003 create spool files named FPnnnnn.spl where nnnnn is no longer the JobID.

This is the side effect of file pooling. 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 s tored. For example, type c:/windows/system32/spool/printers as the default location.
  5. Quit Registry Edi tor.
  6. 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.

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 Edi tor.
  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.

 

二.打印机-属性-高级-保留打印的文档选中

对应注册表中<打印机名字>-DsSpooler-printKeepPrintedJobs = 1

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值