Code: Select all
C:\soft\XnViewMP\xnviewmp.exe "imxyM_lt3DU.jpg"
Sadly if file name starts with dash (e. g.
Code: Select all
C:\soft\XnViewMP\xnviewmp.exe "-BUF883DY90.jpg"
I think this is happening because its command line parser thinks this is a command line option, correctness fails and XnViewMP falls through to some safe option.
Maybe XnViewMP in such cases (where command line parsing fails) should check afterwards if such file exists and opens it.
Another option - additional command line parameter that means "the following aren't options, but arguments" (like "--" in Linux). Or command line parameter "open the file in the viewer".