multiple instances / start parameters / command line

Ask for help and post your question on how to use XnView Classic.

Moderators: helmut, XnTriq, xnview

Post Reply
Cappucino

multiple instances / start parameters / command line

Post 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.
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

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

various instances / varios INIs

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