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.
> 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.
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
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.