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, xnview

kukris
Posts: 4
Joined: Tue Oct 10, 2017 6:29 pm

XnView 2.42 does not start in specified folder via command line

Postby kukris » Tue Oct 10, 2017 7:13 pm

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: 28394
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Postby xnview » Fri Oct 13, 2017 9:10 am

i can't reproduce, which setting do you use in General>Startup?
Pierre.

kukris
Posts: 4
Joined: Tue Oct 10, 2017 6:29 pm

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

Postby kukris » Fri Oct 13, 2017 9:06 pm

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-GeneralOptions.png
XnView General Options


Greetings
Kukris

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

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

Postby xnview » Sat Oct 14, 2017 1:17 pm

and with 'Last used'?
Pierre.

kukris
Posts: 4
Joined: Tue Oct 10, 2017 6:29 pm

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

Postby kukris » Sat Oct 14, 2017 8:40 pm

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: 28394
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Postby xnview » Sun Oct 15, 2017 10:51 am

ok, :bugconfirmed:
Pierre.

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

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

Postby xnview » Fri Oct 20, 2017 6:37 am

do you have tried the 2.43?
Pierre.


Return to “Classic - Bug Reports”

Who is online

Users browsing this forum: No registered users and 2 guests