Solved

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

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need a good Angular tutorial 5 90
Powercli + List all VM's Per SCSILUN 15 120
AWK - Blank file output zero bytes why? 18 34
Ruby or Python 7 61
Introduction:   Welcome to my first article ever. To begin with, the reason I write this article.  I participated in a question on Experts Exchange about the start command in Windows and there were some discussion about the usage. The discussio…
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…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

726 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