Windows 7下的NET PRINT指令被删除[组图]
如果你习惯下指令来操作系统,那么您可以试试在 Windows 7 的 command line 底下输入 "net /?",你会发现下图:
耶... 怎么 NET PRINT 的指令不见了?
是的,你没有看错,NET PRINT 指令在 Windows 7 已经不存在了。
为什么呢?根据中国 TechNet 团队特派员的了解,决定不在 Windows7 继续提供 NET PRINT 指令有两个理由,一是指令的使用率,二是有其他的方式可以达到同样的目的。
在我们开始说明有哪些方式可以达到同样的效果前,先让我们来复习一下 NET PRINT 这个指令吧。
透过 NET PRINT 的指令说明(如下)我们可以知道,NET PRINT 是用来显示当前列印工作排序状态。您可以透过指令来指派列印工作的状态,例如暂停列印工作、恢复列印工作以及删除列印工作。
NET PRINT
computernamesharename
[computername] job# [/HOLD | /RELEASE | /DELETE]
NET PRINT displays print jobs and shared queues. For each queue, the display lists jobs, showing the size and status of each job, and the status of the queue.
computername is the name of the computer sharing the printer queue(s).
sharename is the name of the shared printer queue.
job# is the identification number assigned to a print job. A computer with one or more printer queues assigns each print job a unique number.
/HOLD prevents a job in a queue from printing. The job stays in the printer queue, and other jobs bypass it until it is released.
/RELEASE reactivates a job that is held.
/DELETE removes a job from a queue.
虽然 NET PRINT 已经不复存在,但是你在 %windir%System32Printing_Admin_Scriptsen-US 找到 prnjobs.vbs 来实现相同的功能。