Page 1 of 1
multiple instances / start parameters / command line
Posted: Mon Feb 27, 2006 10:57 am
by Cappucino
I found, that it is possible to start multiple instances of XnView to display various folders with one click:
C:\Programme\XnView\xnview.exe "H:\CLIPARTS\BIRTHDAY"
C:\Programme\XnView\xnview.exe "H:\CLIPARTS\OFFICE"
But is it also possible to save other parameters (Thumb-Size, Window-Position, ....) for each of these instances.
May be via command line patramters as IrfanView does ?
Than You - Cp.
Posted: Mon Feb 27, 2006 11:13 pm
by helmut
In the FAQ
Technical info about XnView's settings (store & load) you will find more details. This background info might help to understand my answer below.
XnView settings are stored at a single point, either the registry or the .ini file. When starting multiple instances they will all read the .ini file in that single point, so no easy way to achieve what you want.
What you could do:
You could make a copy of the whole program folder of XnView (2.5 - 7 MB) rectories. If you store your settings in the .ini file, then there will be two exectubles which reside in two different directories with two different .ini files.
The cache location can be set in the options, so cache can be shared by both instances. All the rest has to be doubled.
various instances / varios INIs
Posted: Wed Mar 01, 2006 8:50 am
by Cappucino
Helmut, thank You for your quick help.
Meanwhile I spent some more time with these questions and found, that it is simply necassary to create different INIs for different settings:
C:\Programme\XnView\xnview.exe -ini "D:\xnview-1.ini"
C:\Programme\XnView\xnview.exe -ini "D:\xnview-2.ini"
to start two instances with differing settings.
If the values in xnview-1.ini are :
StartupDirectory=D:\CLIPARTS\Birthday\
StartupIn=2 (defined startup folder)
and in xnview-2.ini are :
StartupDirectory=D:\CLIPARTS\Office\
StartupIn=2 (defined startup folder)
I get the right result.
The other parameters for both instances can also be defined this way.