Consultor Eletrônico



Kbase P103849: how to print using DOS or OS-COMMAND with USB printer
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   16/10/2008
Status: Unverified

GOAL:

how to print using DOS or OS-COMMAND with USB printer

GOAL:

how to make a USB printer 'behave' the same way as a parallel printer in Windows

FACT(s) (Environment):

Windows NT 32 Intel/Windows 2000

FIX:

A network connected and configured is needed, or install Microsoft Loopback Adapter to emulate a network.

NT4/W2K/XP based operating systems need the LPT ports to be assigned using the following methods:

- configure the USB printer as a shared resource in the network.

- Then, create a batch file and put it in the startup routine of the computer or just simply put it on the Desktop and click it after startup of the computer.
The batch file contents should have the following 2 lines of code as a minimum:
NET USE LPT1: /d
NET USE LPT1 \\Computer\SharedPrinterName /persistent:yes
where:
- Computer is the computers name that has the printer
- SharedPrinterName is the printers network share name
Multiple assignments are possible as well:
NET USE LPT1: /d
NET USE LPT2: /d
NET USE LPT3: /d
NET USE LPT1 \\Computer1\Printer1 /persistent:yes
NET USE LPT2 \\Computer1\Printer2 /persistent:yes
NET USE LPT3 \\Computer2\Printer1 /persistent:yes

Then use the USB printer in DOS or OS-COMMAND the same way as with a parallel printer.