Page 1 of 1

XnView 2.42 does not start in specified folder via command line

Posted: Tue Oct 10, 2017 7:13 pm
by kukris
Hello,

with XnView 2.41 and XnView 2.42 the program does not start in the specified folder via command line anymore when XnView is installed in a different folder than %ProgramFiles%. Instead of opening in the specified folder, it opens in the folder where the command is executed (like C:\Windows\system32) or where the batch file is located. In XnView 2.40 it worked.


Example
XnView is installed under c:\XnView\xnview.exe
Open a command prompt (normally it opens under C:\Windows\system32). Now execute this command

Code: Select all

"c:\XnView\xnview.exe" "c:\temp"
In XnView 2.40 it opened XnView in the folder c:\temp. Now (XnView 2.41 and XnView 2.42) it opens under the current location, in this case C:\Windows\system32. This also applies to batch files when opening multiple XnView instances with different folders.

Info and settings
Windows 7 x64
XnView 2.4x

Code: Select all

[HKEY_CURRENT_USER\Software\XnView]
"UseRegistry"=dword:00000001

[HKEY_CURRENT_USER\Software\XnView\Browser]
"StartupIn"=dword:00000000
"StartupDirectory"=""
Changing the startup options does not solve the problem.

Re: XnView 2.42 does not start in specified folder via command line

Posted: Fri Oct 13, 2017 9:10 am
by xnview
i can't reproduce, which setting do you use in General>Startup?

Re: XnView 2.42 does not start in specified folder via command line

Posted: Fri Oct 13, 2017 9:06 pm
by kukris
Hi,

It is important that the command is executed from a command line (cmd.exe) and not from the Windows run command box (This works).

I'm using the default settings (I have deleted the old folder "%APPDATA%\XnView").
XnView General Options
XnView General Options
Greetings
Kukris

Re: XnView 2.42 does not start in specified folder via command line

Posted: Sat Oct 14, 2017 1:17 pm
by xnview
and with 'Last used'?

Re: XnView 2.42 does not start in specified folder via command line

Posted: Sat Oct 14, 2017 8:40 pm
by kukris
Hi,

I have tried all three options (Last Used, Current and Specified), but the problem persists.

Greetings
Kukris

Re: XnView 2.42 does not start in specified folder via command line

Posted: Sun Oct 15, 2017 10:51 am
by xnview
ok, :bugconfirmed:

Re: XnView 2.42 does not start in specified folder via command line

Posted: Fri Oct 20, 2017 6:37 am
by xnview
do you have tried the 2.43?