Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Print command doesnt work

259 views
Skip to first unread message

Singh

unread,
Apr 22, 2003, 8:42:46 PM4/22/03
to
Hi,

The PRINT command does not work from the command prompt of
a win 2000 machine.
"the file is being printer" thats the message , but
nothing happens.
The same text file can be printed perfectly from the
windows.

Are there any settings that need to be done on win 2000?

Kind Regards,
Singh

Marty List

unread,
Apr 22, 2003, 9:55:40 PM4/22/03
to

You should post your command line you are using, otherwise we have no idea
what you are doing right or wrong. You might also want to share how the
printer is connected, like via parallel cable or serial cable, to LPT1:,
etc.

This is from the Help file:

Print
Sends a text file to a printer.

Syntax
print [/d:Printer] [Drive:][Path] FileName [ ...]

Parameters
/d:Printer
Specifies the printer on which you want to print the job. You can specify
a local printer by specifying the port on your computer to which the printer
is connected. Valid values for parallel ports are LPT1, LPT2, and LPT3.
Valid values for serial ports are COM1, COM2, COM3, and COM4. You can also
specify a network printer by its queue name (\\ServerName\ShareName). If you
do not specify a printer, the print job is sent to LPT1.
Drive:
Specifies the logical or physical drive on which the file you want to
print is located. This parameter is not required if the file you want to
print is located on the current drive.
Path
Specifies where, on the drive, the file you want to print is located. This
parameter is not required if the file you want to print is located in the
current directory.
FileName [...]
Required. Specifies, by name, the file you want to print. You can include
multiple files in one command.
/?
Displays help at the command prompt.
Remarks
a.. A file can print in the background if you send it to a printer
connected to a serial or parallel port on the local computer.
b.. Many programs have their own print commands. You should use the print
command for a program to print files that you create with that program.
c.. You can perform many configuration tasks from the command line by
using the mode command. For more information about configuring a printer
connected to a parallel port, configuring a printer connected to a serial
port, displaying the status of a printer, or preparing a printer for code
page switching, see mode in Related Topics.
Examples
To send the file Report.txt in the current directory to a printer connected
to LPT2 on the local computer, type:

print /d:LPT2 report.txt

To send the file Report.txt in the c:\Accounting directory to the Printer1
print queue on the \\CopyRoom server, type:

print /d:\\copyroom\printer1 c:\accounting\report.txt


"Singh" <si...@msn.com> wrote in message
news:02f801c30931$420ad700$a501...@phx.gbl...

singh

unread,
Apr 23, 2003, 11:27:50 AM4/23/03
to
This is the command that i try to execute with my printer
being on lpt1 thru parallel port.

C:\>print /d:lpt1 lavabuf.txt
C:\lavabuf.txt is currently being printed


And nothing happens after this ...


Thanks and Kind Regards,
Singh.

>.
>

Marty List

unread,
Apr 23, 2003, 11:40:22 AM4/23/03
to

How big is the file?

You're not specifying a path to the file, does lavabuf.txt actually exist in
C:\?

As a test, try this command:
copy c:\lavabuf.txt lpt1:


"singh" <si...@msn.com> wrote in message
news:004701c309ac$e6bc7080$a301...@phx.gbl...

Singh

unread,
Apr 23, 2003, 11:53:29 AM4/23/03
to
The file is in the C:\
The file size is just 2 KB

If I open it with note pad and print on the same printer,
it prints perfectly!!

>.
>

Mark V

unread,
Apr 23, 2003, 12:15:45 PM4/23/03
to
"Singh" <si...@msn.com> wrote in news:047201c309b0$7bb1f4a0
$a001...@phx.gbl:

> The file is in the C:\
> The file size is just 2 KB
>
> If I open it with note pad and print on the same printer,
> it prints perfectly!!

As a workaround (not a solution) you could from the command prompt
issue:
notepad /p lavabuf.txt

If you just want to try...
print /d:LPT1: file
print /d:PRN file

...and you are certain the printer is actually _on_ LPT1 I suppose...

Singh

unread,
Apr 23, 2003, 12:41:30 PM4/23/03
to
notepad /p lavabuf.txt this works okay, but not the print
command:

C:\>print /d:LPT1: buffer.txt
C:\buffer.txt is currently being printed
The same response, but nothing on the printer.

I have the Datamax I 4206 printer.


>-----Original Message-----
>"Singh" <si...@msn.com> wrote in news:047201c309b0
$7bb1f4a0
>$a001...@phx.gbl:
>
>> The file is in the C:\
>> The file size is just 2 KB
>>
>> If I open it with note pad and print on the same
printer,
>> it prints perfectly!!
>
>As a workaround (not a solution) you could from the
command prompt
>issue:
> notepad /p lavabuf.txt
>
>If you just want to try...
> print /d:LPT1: file
> print /d:PRN file
>

>....and you are certain the printer is actually _on_ LPT1

>.
>

Marty List

unread,
Apr 23, 2003, 1:02:29 PM4/23/03
to

Did you try "copy c:\lavabuf.txt lpt1:"


"Singh" <si...@msn.com> wrote in message

news:04b701c309b7$312d8dc0$3001...@phx.gbl...

singh

unread,
Apr 23, 2003, 1:22:20 PM4/23/03
to
This command also doesnt do anything on the printer.

C:\>copy c:\lavabuf.txt lpt1:
1 file(s) copied.


I dont know if it is the printer compatibility with
command prompts?


Kind Regards,
Sharan.

>.
>

Bob I

unread,
Apr 23, 2003, 1:32:25 PM4/23/03
to
Sounds like you might need to send a Formfeed to the printer after the
file is sent.

Singh

unread,
Apr 23, 2003, 1:37:40 PM4/23/03
to
Okay, now when i close the command prompt window after
firing a command .I get this error message (only after
closing the window):
There is a problem writing to port LPT1:Would you like to
try or cancel.

But the printer is on the LPT1 port and printing perfectly
from windows applications.

Thanks and Kind Regards,
Singh

>.
>

Mark V

unread,
Apr 23, 2003, 1:33:28 PM4/23/03
to
Bob I <bir...@yahoo.com> wrote in news:3EA6CE29...@yahoo.com:

> Sounds like you might need to send a Formfeed to the printer after
> the file is sent.
>

[ ]

Ah, hah! I remember that now.
copy /b ff.txt LPT1
Where ff.txt contains ASCII 0C hex (FF).


Mark V

unread,
Apr 23, 2003, 1:40:34 PM4/23/03
to
"Singh" <Si...@msn.com> wrote in news:003201c309bf$09da2280
$a501...@phx.gbl:

> Okay, now when i close the command prompt window after
> firing a command .I get this error message (only after
> closing the window):
> There is a problem writing to port LPT1:Would you like to
> try or cancel.
>
> But the printer is on the LPT1 port and printing perfectly
> from windows applications.
>

[ prior snipped ]

If you open the Printer Object and put it in "Pause Printing" and then
do the test, does a print job ever show up in the queue?

If from a command prompt you issue
mode lpt1
do you see "Printer output is not being rerouted."?


Singh

unread,
Apr 23, 2003, 1:55:13 PM4/23/03
to
Okay, now when i close the command prompt window after
firing a command .I get this error message (only after
closing the window):
There is a problem writing to port LPT1:Would you like to
try or cancel.

But the printer is on the LPT1 port and printing perfectly
from windows applications.

Thanks and Kind Regards,
Singh

>.
>

0 new messages