Relative path for the Browser StartupDirectory

Ideas for improvements and requests for new features in XnView Classic

Moderators: helmut, XnTriq, xnview

Post Reply
TS
Posts: 4
Joined: Tue Jun 05, 2007 8:22 am

Relative path for the Browser StartupDirectory

Post by TS »

Could it be possible, that Xnview handle relative paths at start up?
I would like to put Xnview on a CD with some picture folders. Xnview should start the browser with a specified folder on that CD, independently from the drive letter.

many thanks,
Thomas!
User avatar
xnview
Author of XnView
Posts: 46255
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Relative path for the Browser StartupDirectory

Post by xnview »

TS wrote:Could it be possible, that Xnview handle relative paths at start up?
I would like to put Xnview on a CD with some picture folders. Xnview should start the browser with a specified folder on that CD, independently from the drive letter.
Do you have tried xnview \folder\...\ ??
Pierre.
TS
Posts: 4
Joined: Tue Jun 05, 2007 8:22 am

Post by TS »

I've tried:

\folder\...\

or

.\folder\

or

\folder\

but Xnview always starts with an empty browser.
User avatar
xnview
Author of XnView
Posts: 46255
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

TS wrote:I've tried:

\folder\...\

or

.\folder\

or

\folder\

but Xnview always starts with an empty browser.
Where is XnView? \XnView.exe?
Pierre.
TS
Posts: 4
Joined: Tue Jun 05, 2007 8:22 am

Relative path for the Browser StartupDirectory

Post by TS »

the path to Xnview.exe on the CD is:

\Xnview\xnview.exe
User avatar
xnview
Author of XnView
Posts: 46255
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Relative path for the Browser StartupDirectory

Post by xnview »

TS wrote:the path to Xnview.exe on the CD is:

\Xnview\xnview.exe
If you try to use in the autorun.inf XnView\XnView.exe folder ?
Pierre.
TS
Posts: 4
Joined: Tue Jun 05, 2007 8:22 am

Relative path for the Browser StartupDirectory

Post by TS »

Excuse me please for my late reply, but my internet connection was disabled.

With the autorun.inf and the start.bat it works fine.

autorun.inf:
[autorun]
open=start.bat

start.bat:
cd /Xnview/
start xnview.exe \folder
exit

I always thought that I have to edit the StartupDirectory= in the xnview.ini. or have to put the relative path in the GUI at options/general/operations/startup directory. Perhaps this is possible in one of the next releases?

Many thanks you for your help and your great software!

TS
Post Reply