I think I understand what you want: An opened XnView showing an image should be exited after entering some text.
With commnand line options you cannot achieve this. Command line options are always passed when a is started, but you cannot pass command line options to an application that is already running.
There's some possible ways:
= Use extra program
You could use a program that tells the running XnView process to quit/close. I've just searched the web a bit and found some apps, e.g.
-
AppKiller (now Freeware, licences can be found at
Shenandoah Software)
-
Process (Freeware, Command line)
I'm sure there are many more.
= XnView as "Killer"
XnView could be enhanced so that it actually accepts a command line option "-quit" or "-close". The command "xnview -quit" would start a new instance of XnView which would do nothing else than looking for running XnView instances and kill them. The app would then exit itself.
This could work, but I think the above applications for killing specific programs are much more appropriate and flexible.