Wednesday, February 13, 2008

Print to USB Printer from DOS under windows

Here are the step to setup the printer port which can be use under DOS like "DIR > LPT2"

1. Install the Microsoft Loopback Adapter, then configure a static IP
(eg. 10.10.10.1/255.255.255.0)

2. Share the printer (eg. usbprinter)

3. create a printer port on LPT2
NET USE LPT2: \\10.10.10.1\usbprinter /PERSISTENT:YES

Finally, you can try to print use "DIR > LPT2" under DOS