XnView 2.42 does not start in specified folder via command line

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: XnTriq, helmut, xnview

Post Reply
kukris
Posts: 5
Joined: Tue Oct 10, 2017 6:29 pm

XnView 2.42 does not start in specified folder via command line

Post 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.
User avatar
xnview
Author of XnView
Posts: 43326
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post by xnview »

i can't reproduce, which setting do you use in General>Startup?
Pierre.
kukris
Posts: 5
Joined: Tue Oct 10, 2017 6:29 pm

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

Post 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
User avatar
xnview
Author of XnView
Posts: 43326
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post by xnview »

and with 'Last used'?
Pierre.
kukris
Posts: 5
Joined: Tue Oct 10, 2017 6:29 pm

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

Post by kukris »

Hi,

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

Greetings
Kukris
User avatar
xnview
Author of XnView
Posts: 43326
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post by xnview »

ok, :bugconfirmed:
Pierre.
User avatar
xnview
Author of XnView
Posts: 43326
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post by xnview »

do you have tried the 2.43?
Pierre.
Post Reply