PC Review


Reply
Thread Tools Rate Thread

command line print issue

 
 
M. Müller
Guest
Posts: n/a
 
      29th Mar 2010
hi there.

using xp pro sp3 32bit and trying to print from cmd. i used "print
/d:\\[computer]\[printer] [filename]" for the printer (which is set up
for sharing), but xp only tells me that the printer couldn't be
initialized. printer (magicolor 2350) is connected via usb. on other
machines the command completes successfully with some other kinds of
printers (magicolo 2300, brother hl-1250).

does anyone have an idea what's going wrong there?

greets,

marcel
--
to replay vie mail, remove the "DontSpamMe_"-part from my email
 
Reply With Quote
 
 
 
 
Alan Morris [MSFT]
Guest
Posts: n/a
 
      31st Mar 2010
The file needs to be in a format the printer understands. Most QMS devices
will consume TEXT format. What type of data are you sending?

Normal method of copying data to the share is setting up a printer on one
machine that does not have access to the printer. Launch an application and
select the printer but print the data to File. Then copy the file to
portable storage. On the machine that has access to the print share copy
(or use print.exe but it's the same thing) to the machine sharing the
device. Print.exe, like copy, does not format the file in a language the
printer understands, you have to have performed this task during the file
creation process.

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/search/?adv=1

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

"M. Müller" <massels-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> hi there.
>
> using xp pro sp3 32bit and trying to print from cmd. i used "print
> /d:\\[computer]\[printer] [filename]" for the printer (which is set up
> for sharing), but xp only tells me that the printer couldn't be
> initialized. printer (magicolor 2350) is connected via usb. on other
> machines the command completes successfully with some other kinds of
> printers (magicolo 2300, brother hl-1250).
>
> does anyone have an idea what's going wrong there?
>
> greets,
>
> marcel
> --
> to replay vie mail, remove the "DontSpamMe_"-part from my email



 
Reply With Quote
 
M. Müller
Guest
Posts: n/a
 
      1st Apr 2010
On Wed, 31 Mar 2010 09:09:16 -0700, "Alan Morris [MSFT]"
<(E-Mail Removed)> wrote:

>The file needs to be in a format the printer understands. Most QMS devices
>will consume TEXT format. What type of data are you sending?


it's a regular txt-file i wanted to print.. so nothing unusual on this
side of the track, i'd say.

the printer is connected locally via usb. i got the "could not be
initialized" message when i tried 'print /D:"magicolor 2300"
textfile.txt'. i set up the printer for sharing and tried /D:magicolor
(share name), /D:\\server\magicolor, /D:"\\server\magicolor,
D:"magicolor" ... but with no success for either of the options.

printing from windows applications is no problem at all, everything
works fine. just in the dos-box it won't do what it should.
 
Reply With Quote
 
Alan Morris [MSFT]
Guest
Posts: n/a
 
      1st Apr 2010
the only option that can work is \\machine\share. Stick with a sharename
that does not contain any spaces

E:\>print file.txt /D:\\server\printer
E:\file.txt is currently being printed

You can also use \\localhost when the machine has the local printer
attached.

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/search/?adv=1

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

"M. Müller" <massels-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Wed, 31 Mar 2010 09:09:16 -0700, "Alan Morris [MSFT]"
> <(E-Mail Removed)> wrote:
>
>>The file needs to be in a format the printer understands. Most QMS
>>devices
>>will consume TEXT format. What type of data are you sending?

>
> it's a regular txt-file i wanted to print.. so nothing unusual on this
> side of the track, i'd say.
>
> the printer is connected locally via usb. i got the "could not be
> initialized" message when i tried 'print /D:"magicolor 2300"
> textfile.txt'. i set up the printer for sharing and tried /D:magicolor
> (share name), /D:\\server\magicolor, /D:"\\server\magicolor,
> D:"magicolor" ... but with no success for either of the options.
>
> printing from windows applications is no problem at all, everything
> works fine. just in the dos-box it won't do what it should.



 
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
Print an excel file from command line or "cron" type command ??? Chris Salcedo Microsoft Excel Programming 2 28th Mar 2007 01:10 AM
Command line compilation issue Dragon Microsoft VB .NET 3 20th Aug 2005 03:48 PM
Print from command line Bill Windows XP General 3 11th May 2005 05:48 PM
issue command line statements =?Utf-8?B?Sm9iIExvdA==?= Microsoft Dot NET 1 10th Oct 2004 11:51 PM
How do I issue SQL to a Access database from command line Karen Middleton Microsoft Access External Data 3 8th Oct 2004 11:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:55 PM.