-slide option doesn't work while loading from autorun.inf

Ask for help and post your question on how to use XnView Classic.

Moderators: helmut, XnTriq, xnview

Post Reply
chrizio
Posts: 28
Joined: Sat May 20, 2006 5:04 pm

-slide option doesn't work while loading from autorun.inf

Post by chrizio »

I use this great app XnView also for presentations of my photos
from CD/DVD media.
Below you can see logical structure of my photos CD/DVD

Code: Select all

\root
 +---\_Tools_
 |    +-------\XnView
 |    |        /* XnView binaries and ini-file */
 |    +-------\installers
 |    |        /* installers of some apps for photo & co */
 |    +-------\slideshow
 |             +-------\slideshowfile1.sld
 |             +-------\slideshowfile2.sld
 |             +-------\slideshowfile3.sld
 +---\myphotos1
 |    /* my JPGs */
 +---\myphotos2
 |    /* my JPGs */
 +---\autorun.inf
autorun.inf file has following form

Code: Select all

[autorun]
open = .\_Tools_\XnView\xnview.exe -slide slideshowfile1.sld -ini .\_Tools_\XnView\xnview.ini
icon = .\_Tools_\XnView\xnview.exe,0
label = Private
shell\browsing = &Browse all
shell\browsing\command = .\_Tools_\XnView\xnview.exe . -ini .\_Tools_\XnView\xnview.ini
shell\slides00 = slides '&slideshow all'
shell\slides00\command = _Tools_\XnView\xnview.exe -slide _Tools_\slideshow\slideshowfile1.sld -ini _Tools_\XnView\xnview.ini
shell\slides01 = slides 'Some slideshow #1'
shell\slides01\command = _Tools_\XnView\xnview.exe -slide _Tools_\slideshow\slideshowfile2.sld -ini _Tools_\XnView\xnview.ini
shell\slides02 = slides 'Some slideshow #2'
shell\slides02\command = _Tools_\XnView\xnview.exe -slide _Tools_\slideshow\slideshowfile3.sld -ini _Tools_\XnView\xnview.ini
My problem (observed with 1.90.3) is that xnview can't find the sld file if starting after inserting CD or after choosing some of defined options in context menu.
I don't have any idea if it is xnview or windows having problems with sld files.

Version 1.82 didn't have this issue.
I have just overwritten 1.90.3 installation on CD with xnview.exe and xnview.exe.manifest coming from 1.82 and it is working.
Do you think I should try with 1.91 ?
chrizio
Posts: 28
Joined: Sat May 20, 2006 5:04 pm

Post by chrizio »

I have tried 1.91. The same situation.
I think, it is a bug.
chrizio
Posts: 28
Joined: Sat May 20, 2006 5:04 pm

Post by chrizio »

Anybody else complaining about not working -slide option ?
It doesn't matter if I run

Code: Select all

.\_Tools_\XnView\xnview.exe     -slide .\_Tools_\slideshow\all.sld            -ini .\_Tools_\XnView\xnview.ini
from command line
or

Code: Select all

shell\someslideshow\command = .\_Tools_\XnView\xnview.exe     -slide .\_Tools_\slideshow\all.sld      -ini .\_Tools_\XnView\xnview.ini
from autorun.inf
the xnview can't find the pointed slide file.
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Post by helmut »

I guess the relative path specified for the slide show file (*.sld) must be relative to the program file of XnView (xnview.exe).

Perhaps you give this a try:

Code: Select all

.\_Tools_\XnView\xnview.exe -slide ..\slideshow\slideshowfile1.sld -ini .\_Tools_\XnView\xnview.ini
But I'm just guessing here.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

chrizio wrote:Anybody else complaining about not working -slide option ?
It doesn't matter if I run

Code: Select all

.\_Tools_\XnView\xnview.exe     -slide .\_Tools_\slideshow\all.sld            -ini .\_Tools_\XnView\xnview.ini
If you try that in command line, it doesn't work??
Pierre.
roze
Posts: 5
Joined: Sun Aug 12, 2007 10:05 pm

Post by roze »

Hi,

did you finally resolve your trouble with two slideshows on CD?
I have similar problem.
Guest

Post by Guest »

xnview wrote:
chrizio wrote:Anybody else complaining about not working -slide option ?
It doesn't matter if I run

Code: Select all

.\_Tools_\XnView\xnview.exe     -slide .\_Tools_\slideshow\all.sld            -ini .\_Tools_\XnView\xnview.ini
If you try that in command line, it doesn't work??
I have similar situation:
\root
+---\XnView /* XnView binaries and ini-file */
+---\photos1 /* my JPGs and SLD file */
+---\photos2 /* my JPGs and SLD file */

I can run from command line:
.\xnview\xnview.exe -ini .\xnview\xnview.ini
but when I run
.\xnview\xnview.exe -ini .\xnview\xnview.ini -slide .\photos1\first.sld
I get message:
Error opening the file .\photos1\first.sld

Can you give me advice what is wrong?

Thanks
chrizio
Posts: 28
Joined: Sat May 20, 2006 5:04 pm

Post by chrizio »

Sorry for a long silence from me regarding this issue report.
But I was hardly involved in other tasks.
Recently I have updated to 1.91.3 to try if there is some improvement.

No, my autorun batch on CD still has problems to find ini file.

Please help me to get it working.

Invoking this syntax from command line also generates this error message.
No problem if I remove the slide-part from command line syntax.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

chrizio wrote:Sorry for a long silence from me regarding this issue report.
But I was hardly involved in other tasks.
Recently I have updated to 1.91.3 to try if there is some improvement.

No, my autorun batch on CD still has problems to find ini file.

Please help me to get it working.

Invoking this syntax from command line also generates this error message.
No problem if I remove the slide-part from command line syntax.
Could you contact me
Pierre.
Post Reply