8 replies
by stillatit
This is done with a net use command.
net use LPT1: \\servername\printername
If there is already something attached to LPT1, this will fail. To delete the previous definition, use
net use LPT1: /delete
Note also that printers with long names, or with strange characters in their names, will not work. The printer name should be limited to 15 characters, and should have no special characters in it (e.g., & $ * and so on).
You can test your commands from a command window to make surethey work.
Good luck.
by mini-rex
by mini-rex
by sdbytnar
Try creating a printer that connects to lpt1 using the appropriate printer driver. Then try running the script again. When you print to the local printer on lpt1 the job should be redirected to the network.
Sean
by mini-rex
by pezzz
by mini-rex
by mini-rex
This discussion is closed to new replies.
Trending Windows Forum posts
Sort by Trending