Solved

IrfanView - Command Line

Posted on 2013-01-08
4
963 Views
Last Modified: 2013-01-20
Hi need to send the printer size with the command line,
I have to diffrent printers.. and I want to run this script..

C:\Program Files (x86)\IrfanView\i_view32.exe C:\02 \121116.tif /killmesoftly /silent /print=Printer01   ( This need FORMAT 100X100)

C:\Program Files (x86)\IrfanView\i_view32.exe C:\06 \12ere16.tif /killmesoftly /silent /print=Printer02   ( This need FORMAT 150X150)





I can make the printout if I open the .tiff manuell in the software.. and choice the korrekt FORMAT
but it seems like when I run the program from the commando line it use the last used FORMAT.
I want to use the format that is defualt for the printer i want to print out for!


So Can I somehow make the format as input to the commandolines...
0
Comment
Question by:kavvis
[X]
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
  • 3
4 Comments
 

Author Comment

by:kavvis
ID: 38754003
what I can understand the application uses the last "knowed" settingings in the .ini file..





I made one print out with the both printers so se what changes...
I can onlye se this lines changes..  (this is in the  "i_view32.ini" )




AutoRotate=0
Option=1                                          Option=2
Left=0.00
Top=0.00
Inches=0
ScaleX=10.00
ScaleY=10.00
Centered=0
MultipageOpt=1
PageRange1=1
PageRange2=1
CustomPages=1;3;4;
EvenOdd=0
Copies=1
Head=0
HeadTxt=
Collate=1
Foot=0
FootTxt=
FontParam=-13|0|0|0|400|0|0|0|0|1|2|4|49|
Font=Courier
Printer=Printer01                        Printer=Printer02
Orient=1
Size=120                                          Size=9
Src=1                                                Src=15
Color=1
Duplex=1
SizeTxt=A4



Maybe I can change this lines in the "i_view32.ini" from my VB.net before make the print?
Then it should start?
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 38754211
Yeah give it a try. Initially, change the line manually to see if it makes any difference

http://www.vbforums.com/showthread.php?233989-VB-Handy-INI-file-manipulation-sample

http://www.freevbcode.com/ShowCode.asp?ID=306
0
 

Author Comment

by:kavvis
ID: 38754271
That you.. I made Two diffrent .ini files instead, and when Then when i make The print i change The location on The file..

This work, i hope it's fast enogh.. Else i Will test your tips!
0
 

Author Closing Comment

by:kavvis
ID: 38798209
Thank you will test your code
0

Featured Post

Raise the IQ of Your IT Alerts

From IT major incidents to manufacturing line slowdowns, every business process generates insights that need to reach the people required to take action. You need a platform that integrates with your business tools to create fully enabled DevOps toolchains.

You need xMatters.

Question has a verified solution.

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

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

691 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