Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

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

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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
This article will show, step by step, how to integrate R code into a R Sweave document
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

840 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