PC Review


Reply
Thread Tools Rate Thread

Commandline printing

 
 
=?Utf-8?B?QnVTY2g=?=
Guest
Posts: n/a
 
      3rd Jan 2006
A W2k Prof Client, SP4, all important and Security Patches installed (maybe
thats a problem)
working as a Print server with a direct connected old small hp Laserjet on
LPT1:

Printing from the network with all applications works fine,
Printing local from Office works fine
but i am unable to print from the commandline with the print command.
The print command prompts that the documnet is printed but nothing happens
The copy command to LPT1: fails also.

I dont know the exact day it failed, but there is a batch task printing
over the commandline which failed and there was no changes.

Printing like this
net use LPT2: \\server\printershare isn't working

is there an easy to use script that can do that for me using other then the
commanline printer driver.

Reason is we must print every 20 minutes a blank sheet that will keep the
printer
alive, we got problemes if the printer falls into powersave mode.
thanks for your help

burkhard
 
Reply With Quote
 
 
 
 
Jason Tan
Guest
Posts: n/a
 
      4th Jan 2006
Hello,

Thanks for posting!

I suggest you print directly to the printer share by using the following
syntax at a command prompt

print /d:\\ printserver \ sharename drive :\ path \ filename

where printserver is the print server sharing the printer, where sharename
is the name of the printer share, and where drive: , path , and filename
make up the complete path of the document that you want to print.

For example, to print a document that is named letter.doc from the root
directory of drive C to a printer shared as Laser1 on a print server that
is named Pserver, follow these steps:
1. Click Start, and then click Run.
2. In the Open box, type cmd , and then click OK.
3. Type print /d:\\pserver\laser1 c:\letter.doc , and then press ENTER.

The following command-line message appears:
C:\letter.doc is currently being printed
4. To quit the command prompt, type exit , and then press ENTER.

For more detailed information please refer to the following article:

314499 How to print to a network printer from an MS-DOS-based program in
Windows XP
http://support.microsoft.com/default...b;EN-US;314499

You may use Schedule Tasks to run the script every 20 minutes. For more
detailed information please refer to the following article:

308569 How To Schedule Tasks in Windows XP
http://support.microsoft.com/default...b;EN-US;308569

Hope the information helps.

Happy New Year!

Best Regards,

Jason Tan

Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

=====================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.



--------------------
| Thread-Topic: Commandline printing
| thread-index: AcYQXufGh5/AYFHkRwKKaASfypLzUg==
| X-WBNR-Posting-Host: 80.137.239.98
| From: "=?Utf-8?B?QnVTY2g=?=" <(E-Mail Removed)>
| Subject: Commandline printing
| Date: Tue, 3 Jan 2006 04:12:02 -0800
| Lines: 26
| Message-ID: <B2C91337-E101-4843-85E7-(E-Mail Removed)>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.win2000.applications
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.win2000.applications:19400
| X-Tomcat-NG: microsoft.public.win2000.applications
|
| A W2k Prof Client, SP4, all important and Security Patches installed
(maybe
| thats a problem)
| working as a Print server with a direct connected old small hp Laserjet
on
| LPT1:
|
| Printing from the network with all applications works fine,
| Printing local from Office works fine
| but i am unable to print from the commandline with the print command.
| The print command prompts that the documnet is printed but nothing happens
| The copy command to LPT1: fails also.
|
| I dont know the exact day it failed, but there is a batch task printing
| over the commandline which failed and there was no changes.
|
| Printing like this
| net use LPT2: \\server\printershare isn't working
|
| is there an easy to use script that can do that for me using other then
the
| commanline printer driver.
|
| Reason is we must print every 20 minutes a blank sheet that will keep the
| printer
| alive, we got problemes if the printer falls into powersave mode.
| thanks for your help
|
| burkhard
|

 
Reply With Quote
 
 
 
 
=?Utf-8?B?QnVTY2g=?=
Guest
Posts: n/a
 
      4th Jan 2006
Hy Jason,
thanks for the quick answer.

I repeated all the steps, it was similar you told to me.
if printing to a network printer from the commandline the reply from the
print command was:
"\\printserver\print_share cant be initialized"

if doing it directly to LPT1 :
"document is printed"
but that was a ly ;-), nothinh happens

i find a solution in deleting all the printers on that printserver and
install them again with the same drivers and it works fine.
I dont know why, but......

Your info about the delay routine is what i need.

thanks again from germany
Burkhard


 
Reply With Quote
 
Jason Tan
Guest
Posts: n/a
 
      5th Jan 2006
Dear Burkhard

I appreciate your update and response, and I am glad to hear that the
information helps. If you have any other questions or concerns, please do
not hesitate to contact us. It is always our pleasure to be of assistance.

Happy New Year!

Best Regards,

Jason Tan

Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

=====================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.




--------------------
| Thread-Topic: Commandline printing
| thread-index: AcYRGEk+fZGz4b92Tw6HAMF/WiB8Dw==
| X-WBNR-Posting-Host: 80.137.246.89
| From: "=?Utf-8?B?QnVTY2g=?=" <(E-Mail Removed)>
| References: <B2C91337-E101-4843-85E7-(E-Mail Removed)>
<(E-Mail Removed)>
| Subject: RE: Commandline printing
| Date: Wed, 4 Jan 2006 02:19:03 -0800
| Lines: 22
| Message-ID: <7E6A4D84-AF23-45D0-8725-(E-Mail Removed)>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.win2000.applications
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.win2000.applications:19403
| X-Tomcat-NG: microsoft.public.win2000.applications
|
| Hy Jason,
| thanks for the quick answer.
|
| I repeated all the steps, it was similar you told to me.
| if printing to a network printer from the commandline the reply from the
| print command was:
| "\\printserver\print_share cant be initialized"
|
| if doing it directly to LPT1 :
| "document is printed"
| but that was a ly ;-), nothinh happens
|
| i find a solution in deleting all the printers on that printserver and
| install them again with the same drivers and it works fine.
| I dont know why, but......
|
| Your info about the delay routine is what i need.
|
| thanks again from germany
| Burkhard
|
|
|

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing from the commandline Werner Alexi Microsoft Windows 2000 Printing 2 9th Feb 2005 10:52 AM
running context menu entry from commandline? Dan Windows XP Help 3 9th Jan 2005 07:20 PM
Need CommandLine Reference NeoSadist Windows XP Help 2 3rd Oct 2004 11:31 PM
CommandLine Boot w/out Disk Glenn T. Kitchen Windows XP Help 1 28th Sep 2004 05:25 PM
commandline setting Mike Windows XP Help 2 10th Nov 2003 12:04 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:09 PM.