- Client: Windows XP
- Print Server: Ubuntu via CUPS
Is there a way to query the printer queue on the server from a client to retrieve the name of the file being printed?
Code example would be something like:
FOR /F "tokens=* USEBACKQ" %%F IN (`COMMAND TO QUERY PRINT JOBS ^| FIND "FILENAME"`) DO (
SET var=%%F
)
IF NOT DEFINED var (
ECHO Print Job Does Not Exist
) ELSE (
ECHO Print Job Completed
)
I totally forgot to update this =D.
My solution ended up being querying the local print queue on the workstation.
Running that queries the local print jobs with their file names, then I search for the file in the output to see if it successfully made it to the print queue. This is the closest that I could come to my solution and it has been working thusfar.