Discussion:
command line print issue
(too old to reply)
M. Müller
2010-03-29 07:57:40 UTC
Permalink
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
Alan Morris [MSFT]
2010-03-31 16:09:16 UTC
Permalink
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.
Post by M. Müller
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
M. Müller
2010-04-01 07:19:41 UTC
Permalink
On Wed, 31 Mar 2010 09:09:16 -0700, "Alan Morris [MSFT]"
Post by Alan Morris [MSFT]
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.
Alan Morris [MSFT]
2010-04-01 17:54:26 UTC
Permalink
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.
Post by M. Müller
On Wed, 31 Mar 2010 09:09:16 -0700, "Alan Morris [MSFT]"
Post by Alan Morris [MSFT]
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.
Loading...