Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Printing multiple files from a directory using batch files

861 views
Skip to first unread message

mkzkbee

unread,
Apr 28, 2004, 1:38:54 AM4/28/04
to
Hi everyone;
I was wondering if any one could help me out. I have a directory
that contains multiple .TIF files and their names vary from day to
day.

I was wondering if I could use a batch file to go through the
directory and open the file then print it out through a network
printer. Im using the imaging software that comes with windows. I
believe its the Kodakprv.exe

I've tried
start C:\location\offiles.tif /p and (*.tif) to grab all the
files..but it doesnt seem to work

ive also run this

kodakprv.exe C:\location\offiles.tif
call C:\directory\print.bat (separate file containing the following:

print /D:\\server\printerx\). but i get nothing.

o yeah..i've tried

Print /D:\\server\printerx\ ... and i got a whole bunch of pages with
jibberish.

foxidrive

unread,
Apr 28, 2004, 2:25:21 AM4/28/04
to
On 27 Apr 2004 22:38:54 -0700, mkzkbee wrote:

> I was wondering if any one could help me out. I have a directory
> that contains multiple .TIF files and their names vary from day to
> day.
>
> I was wondering if I could use a batch file to go through the
> directory and open the file then print it out through a network
> printer.

A batch file can certainly be used, once you have a program that will print from command line options.

This free program can print to a default printer, or to a named printer.

Program : IrfanView
Author : Irfan Skiljan
WWW : http://www.irfanview.com

Look at the File 'options.txt' which has the Command line options for IrfanView


Example for print:
i_view32.exe c:\test.jpg /print
=> Open 'c:\test.jpg', print the image to default printer and close IrfanView
i_view32.exe c:\test.jpg /print="Printer Name"
=> Open 'c:\test.jpg', print the image to specific printer and close IrfanView
i_view32.exe c:\*.jpg /print
=> Print all JPGs from "C:\" and close IrfanView

> Im using the imaging software that comes with windows. I
> believe its the Kodakprv.exe

I think that may be a third party app.

Mark V

unread,
Apr 28, 2004, 3:43:42 AM4/28/04
to
In alt.msdos.batch.nt foxidrive wrote:

Although I never use the Kodak app, here (W2K) it is set up to accept
"/p" from the commandline for printing.

<path>\kodakprv.exe /p <path>\filespec

(quoted if necessary)

OP was trying to instantiate the app by way of the data filename.

I'd go with Irfanview 10 times out of 10 though. FWIW

mkzkbee

unread,
Apr 28, 2004, 11:13:20 AM4/28/04
to
> Although I never use the Kodak app, here (W2K) it is set up to accept
> "/p" from the commandline for printing.
>
> <path>\kodakprv.exe /p <path>\filespec
>
> (quoted if necessary)
>
> OP was trying to instantiate the app by way of the data filename.
>
> I'd go with Irfanview 10 times out of 10 though. FWIW

Hey thanks i'll try that

<path>\kodakprv.exe /p <path>\filespec

but if it doesnt work i'll take you up on using that Irfanview prgram

Mark V

unread,
Apr 28, 2004, 1:48:47 PM4/28/04
to
In alt.msdos.batch.nt mkzkbee wrote:

Well if it works and it is what you want, you _could_ set the Default
action for .TIF/TIFImage.Document to be Print. I'd not recommend it
though.

0 new messages