?
Solved

IrfanView - Command Line

Posted on 2013-01-08
4
Medium Priority
?
1,002 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 2000 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

765 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