Forensic mathematics home page
Important note Shortcut Feb 2007Newer DNAVIEW/PATER installation programs include installation of some icons to help make it easier and more convenient to arrange a printer connection, compared to the manual
NET USE LPT1: \\SARSERV\HP4500
or, to avoid having to do this every time the computer restarts
NET USE LPT1: \\SARSERV\HP4500 /persistent:yes
This would connect and establish a Virtual LPT1 for a DOS based program to print on the ICMP network to our HP 4500 color laser.
net use port ResourceName persistence.
LPT1:, a traditional name for one of the plugs on the back of the computer where printers used to be plugged in. DOS, being very old, sends messages to one of these old-fashioned port names in order to print. Windows needs to be told somehow to intercept and re-route all such messages.
An idea (still in beta-test mode) If the machine name you want to use if the same
as the machine you plan to print from you shouldn't need to look up your computer name. Just
use the environment variable
COMPUTERNAME, like this:
net use LPT1: \\%computername%\Panasoni /persistent:yes
Question: But what do you do if the printer isn't plugged into any computer, but just into a hub or a router?
Answer: Use the name of your local computer or of any computer on which the printer is defined and shared.
If the printer is shared ("Share this printer" is selected), then for printer name use the "Share name".
net use lpt1: \\Guru\Panasoni /persistent:yes
If the printer is not shared, maybe the easiest thing is to share it. Other than that, a name can be obtained from the "Printer" column of the "Ports" tab.
If the printer name includes spaces then enclose the entire
ResourceName in quotes:
net use lpt1: "\\Guru\Epson Model T" /persistent:yes
/persistent:yesmeans that the assignment persists even when you reboot your computer.