Print command, unable to initialize the device

Solved
CorentinRoche Posted messages 287 Status Membre -  
CorentinRoche Posted messages 287 Status Membre -
Hello,

I made a script that manages radius accounts, sending the account via FTP, etc...

I created a system that generates a file named impression.txt and puts the information in this file, then it should print it automatically and delete it.
So the creation works, deleting it does too, but when the print command executes, I get this error:
unable to initialize device \\10.35.2.8\10.35.3.211


Normally the syntax for the command is
print /d:\\Printer_Server\Printer_IP


So my command is:
print /d:\\10.35.2.8\10.35.3.211 impression.txt


but I get this error:
unable to initialize device \\10.35.2.8\10.35.3.211


I tried using the printer's name, its IP... it is not in sleep mode.
And when I print manually, the printer outputs my documents.

Do you have any ideas about this print command?

Best regards,
Roche Corentin

1 réponse

CorentinRoche Posted messages 287 Status Membre 41
 
So I found the issue,

it came from the fact that when I added my printer, I didn't add \\srv-print01,

whereas in the command I told it to go through the server,
so it was searching in vain, we can say....

best regards, Corentin Roche
2