Solved

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

Posted on 2009-06-29
3
513 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
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)

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now