Solved

DOS Print Command to Output Method "Store" (Printer Email Box)

Posted on 2009-06-29
3
516 Views
Last Modified: 2013-11-09
Hi,

I'm trying to use DOS commands to print a folder of PDFs to the email box on a network printer.  I can print to it with no problem, and if I print from my desktop, I can config the print driver so that the Output Method is "Store".

Does anyone know a way for me to tell the DOS command to go to the mail box, a.k.a. Output Method "Store"?
0
Comment
Question by:mwidholm
  • 2
3 Comments
 
LVL 14

Expert Comment

by:Giovanni Heward
ID: 24738986
Assuming that if you simply e-mail an PDF as an attachment to the printer's monitored inbox, and it prints successfully, all you need is a command-line SMTP mailer.

Blat is such one utility.
http://sourceforge.net/project/showfiles.php?group_id=81910&package_id=83961&release_id=497595

You would then create a batch file to process each PDF thru Blat... then move the PDF out of the processing directory as to not duplicate printing.








@echo off
if not exist processed\nul md processed
for %%f in (*.pdf) do (
echo processing %%f
if "%1"=="/d" echo debug mode enabled
if "%1"=="/d" blat -body "body message" -subject "subject" -server smtp.mailserver.com:25 -f from@email.address.com -to to@email.address.com -attach %%f -base64 -debug
if not "%1"=="/d" blat -body "body message" -subject "subject" -server smtp.mailserver.com:25 -f from@email.address.com -to to@email.address.com -attach %%f -base64 -q
if "%1"=="/d" move %%f processed
if not "%1"=="/d" move %%f processed > nul
echo finished processing %%f
)

Open in new window

0
 

Author Comment

by:mwidholm
ID: 24740828
Thanks, do you prefer x66, x72, or x65 as a nickname?

Our network ppl said SMTP services aren't turned on for that printer (Canon), but they're checking with Canon to see why this isn't working with the config as they have it.

I'll post back.
0
 

Accepted Solution

by:
mwidholm earned 0 total points
ID: 24864011
Canon came out and said it's unsupported to use DOS to print to a mailbox.  Bummer.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question