DOS printing

R

Raphaël ROBIN

Hi all,
2 workstations, XP Home, 1 HP LaserJet 1300, 1 Canon i550.
Same symptom on the 2 computers : print.exe executes and terminates
correctly, the print job appears in the print queue, but nothing is printed,
and the job goes away as if it was printed, without any error !
Any idea ? Thanx a lot for your help.
Raph
 
A

Alan Morris\(MSFT\)

Also make sure the file is a text file. This will also work if the file is
printed first to file in the print language. If you just have an
application formatted file then what you are attempting is not supported
(unless the application formats in txt).

print /?
Prints a text file.

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

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

Raphaël ROBIN

Ok my test was to print a flat text file (dir > c:\test.txt) like this :
print.exe /D:\\pc1\laserjet c:\test.txt
print.exe /D:\\pc2\canoni550 c:\test.txt

It works perfectly on all other machines I've tested, but still dont work on
the 2 stations mentionned ... My client is thinking about rolling back to
W98 !! :((

I really need your help to find a solution. Thank you.
Also make sure the file is a text file. This will also work if the file is
printed first to file in the print language. If you just have an
application formatted file then what you are attempting is not supported
(unless the application formats in txt).

print /?
Prints a text file.

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

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

Raphaël ROBIN

What if I plug a parallel printer to LPT1 or LPT2 ? Will the DOS app be able
to access the printer ?

Thank you.

Alan Morris(MSFT) said:
Also make sure the file is a text file. This will also work if the file is
printed first to file in the print language. If you just have an
application formatted file then what you are attempting is not supported
(unless the application formats in txt).

print /?
Prints a text file.

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

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

Alan Morris\(MSFT\)

If a physical printer is attached to LPT1 or LPT2 and you have a mapping to
a remote system you will need to unmap first before printing to the
physically attached device

net use LPT2: /d

regarding the print failure, verify the security settings on the spool
directory (the default is \windows\system32\spool\printers). Add everyone
full control and see if that will allow the print.exe command access.

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

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

Raphaël ROBIN said:
What if I plug a parallel printer to LPT1 or LPT2 ? Will the DOS app be able
to access the printer ?

Thank you.

"Alan Morris(MSFT)" <[email protected]> a écrit dans le message de
Also make sure the file is a text file. This will also work if the file is
printed first to file in the print language. If you just have an
application formatted file then what you are attempting is not supported
(unless the application formats in txt).

print /?
Prints a text file.

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

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

Cari (MS-MVP) said:
See if Bruce Sanderson's article helps:
http://members.shaw.ca/bsanders/printfromdos.htm
--
Cari ((MS-MVP Printing, Imaging & Hardware)
www.coribright.com


Hi all,
2 workstations, XP Home, 1 HP LaserJet 1300, 1 Canon i550.
Same symptom on the 2 computers : print.exe executes and terminates
correctly, the print job appears in the print queue, but nothing is
printed,
and the job goes away as if it was printed, without any error !
Any idea ? Thanx a lot for your help.
Raph
 
R

Raphaël ROBIN

If a physical printer is attached to LPT1 or LPT2 and you have a mapping
to
a remote system you will need to unmap first before printing to the
physically attached device

net use LPT2: /d

I hope this is not the only solution because the only // printer at my
client office is an old old s**t ...
regarding the print failure, verify the security settings on the spool
directory (the default is \windows\system32\spool\printers). Add everyone
full control and see if that will allow the print.exe command access.

It's XP Home, I cant modify rights ... Anyway, I looked in this directory
while printing with DOS : 2 files were created (at the same time the job
appears in the spool queue), and went away (as the job disappears from the
queue)

Another idea ? Thank you again.
 
A

Alan Morris\(MSFT\)

You need to turn off Simple File sharing in Explorer properties to expose
the ability to ACL the directories. I think you have to hold ctrl or shift
when bringing up the windows\system32\spool\printers folder properties.

What account name is displayed for Owner in the queue view?

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

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

Raphaël ROBIN

You need to turn off Simple File sharing in Explorer properties to expose
the ability to ACL the directories. I think you have to hold ctrl or shift
when bringing up the windows\system32\spool\printers folder properties.

No way to display ACL with XP Home ... :((
What account name is displayed for Owner in the queue view?

Here is the report (in french) of the print job in the XP event viewer :

<< Le document 19, Document local de bas niveau possédé par ACCUEIL a été
imprimé sur hp LaserJet 1000 via le port USB001. Taille en octets : 655 ;
pages imprimées : 0 >>

Summary : user ACCUEIL (the default user, logged on), size: 655 bytes,
printed pages : 0

Does this help ? Not me ... :((

Thanx again for your help.
 
R

Raphaël ROBIN

Still alive Alan ? :))

Alan Morris(MSFT) said:
You need to turn off Simple File sharing in Explorer properties to expose
the ability to ACL the directories. I think you have to hold ctrl or shift
when bringing up the windows\system32\spool\printers folder properties.

What account name is displayed for Owner in the queue view?

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

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

Raphaël ROBIN said:
mapping
to

I hope this is not the only solution because the only // printer at my
client office is an old old s**t ...


It's XP Home, I cant modify rights ... Anyway, I looked in this directory
while printing with DOS : 2 files were created (at the same time the job
appears in the spool queue), and went away (as the job disappears from the
queue)

Another idea ? Thank you again.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top