Windows Test Page & Print Queue

jackson

Printer Guru
Joined
Dec 14, 2005
Messages
357
Reaction score
2
Points
141
Location
Ontario, Canada
Using the information at this site:
http://tinyurl.com/yjbfgm
I made two batch files that I find useful.

The first file prints the XP Printer Test Page (not the nozzle check).
It's handy for troubleshooting printer problems from the desktop.
The second file may be more useful as it empties out the print spooler in the case where you screwed up and started to print twenty copies instead of two.

The files are created in 'Notepad' and only three lines are required.
For File 1, copy and paste the three lines into Notepad, save the file to the desktop, then rename the file from .txt to .bat
Substitute your own printer name, eg HP932 or Star_NX_1000 for my example.
Note that if your printer name has spaces, it must be placed in quotation marks.

Do the same for File 2

File 1:

cd\
cd C:\Windows\system32\
cscript.exe prnqctl.vbs -e -p "Canon Pixma iP5000"


File 2:

cd\
cd C:\Windows\system32\
cscript.exe prnqctl.vbs -x -p "Canon Pixma iP5000"

If you get an error message "Can't find script engine VBScript" because the dynamic link library (DLL) VBScript.DLL is not properly installed on your compter.
it is unlikely this file (VBScript.DLL) is missing, so all you have to do is type "regsvr32 VBScript" (without the quotes) in the Run Dialog box (Start -> Run)
I assume that Windows is installed on the 'C' drive.
The first file could be used as a 'Scheduled Task' to ensure that the print head gets some ink run through it when the printer has to be left unattended for an extended period.
img192zx5.jpg
 
Top