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
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...
C:\>print /d:lpt1 lavabuf.txt
C:\lavabuf.txt is currently being printed
And nothing happens after this ...
Thanks and Kind Regards,
Singh.
>.
>
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...
If I open it with note pad and print on the same printer,
it prints perfectly!!
>.
>
> 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...
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
>.
>
"Singh" <si...@msn.com> wrote in message
news:04b701c309b7$312d8dc0$3001...@phx.gbl...
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.
>.
>
But the printer is on the LPT1 port and printing perfectly
from windows applications.
Thanks and Kind Regards,
Singh
>.
>
> 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).
> 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."?
But the printer is on the LPT1 port and printing perfectly
from windows applications.
Thanks and Kind Regards,
Singh
>.
>