Announcement

Collapse
No announcement yet.

slidshow command line

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    slidshow command line

    Hi

    I'm trying to write a batch file that will simplify the process of creating a slide how and I can't seem to get the slide show command to work. I can type

    i_view32.exe /slideshow="pathname"

    into the Windows Run dialog box it will work but if I put the same command into my batch file or type it straight into the command prompt, irfanview opens, but does not run the slide show.

    Any suggestions?

    #2
    You must specify where i_view32.exe is, otherwise Windows won't know.

    Either specify the directory:

    Code:
    @echo off
    cd "C:\Program Files\IrfanView"
    i_view32.exe /slideshow="C:\Documents and Settings\trogdor\My Documents\My Pictures\*.jpg"
    exit
    OR specify the whole path:

    Code:
    @echo off
    "C:\Program Files\IrfanView\i_view32.exe" /slideshow="C:\Documents and Settings\trogdor\My Documents\My Pictures"
    exit
    OR run a shortcut instead:

    Code:
    @echo off
    cd "C:\Documents and Settings\trogdor\Desktop"
    IrfanView.lnk /slideshow="C:\Slideshow.txt"
    OR you could also use drag-n-drop on your batch file, or a shortcut pointing to it, or use the Send To command:

    Code:
    @echo off
    "C:\Documents and Settings\trogdor\Desktop\IrfanView.lnk" /slideshow=%1
    Links will automatically close the CMD.exe before the task is finished.

    If you specify alternate ini files, you can have several slideshows at once all called by the batch file. Interested?

    Comment


      #3
      thanks skippy

      I had specified the full path name for irfanview in my batch, I was just too lazy to type it out in my post but I did find my problem thanks to your examples....I wasn't putting the path name to where the images were in quotes

      ... /slideshow=c:\somepath\*.jpg

      instead of

      .../slideshow="c:\somepath\*.jpg"


      Such a simple thing. Thanks again

      Comment

      Working...
      X