Page 1 of 1

Relative path for the Browser StartupDirectory

Posted: Tue Jun 05, 2007 8:56 am
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!

Re: Relative path for the Browser StartupDirectory

Posted: Tue Jun 05, 2007 9:28 am
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\...\ ??

Posted: Tue Jun 05, 2007 9:57 am
by TS
I've tried:

\folder\...\

or

.\folder\

or

\folder\

but Xnview always starts with an empty browser.

Posted: Tue Jun 05, 2007 10:18 am
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?

Relative path for the Browser StartupDirectory

Posted: Tue Jun 05, 2007 10:24 am
by TS
the path to Xnview.exe on the CD is:

\Xnview\xnview.exe

Re: Relative path for the Browser StartupDirectory

Posted: Tue Jun 05, 2007 1:01 pm
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 ?

Relative path for the Browser StartupDirectory

Posted: Thu Jun 07, 2007 8:44 am
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