CustomCommand to a Slideshow

General discussion related to "Everything".
Post Reply
Native2904
Posts: 112
Joined: Mon Nov 22, 2021 8:36 pm

CustomCommand to a Slideshow

Post by Native2904 »

Hello,

I tried several ways to select some pictures in Everything and have them open in IrfanView as a slideshow...
$exec("C:\Users\Home\Apps\IrfanView\i_view64.exe" %* "/slideshow")
$exec("C:\Users\Home\Apps\IrfanView\i_view64.exe" /slideshow=%*)
$exec("C:\Users\Home\Apps\IrfanView\i_view64.exe" /slideshow "%1")
and many more... but either IrfanView reports that no files were specified, or …
O:\Home\HP-LAPTOP\Data\C\Users\Home\Pictures\Tagebau Hambach\09.07.2013\¥“Þ€§Ú : Kann Dateiheader nicht lesen!

Unbekanntes Bildformat, leere/beschädigte Datei oder Datei existiert nicht !
This is a BackupFolder on the NAS.
What am I doing wrong, how do I get a robust command that can open local files and network files?
Last edited by Native2904 on Fri Feb 13, 2026 6:33 am, edited 1 time in total.
therube
Posts: 5711
Joined: Thu Sep 03, 2009 6:48 pm

Re: From CustomCommand to IrfanView as Slideshow

Post by therube »

Make sure you have your command-line correct on the IrfanView end.
That threw me at first, cause its ordering was not what I would have expected.

I use this, Everything 1.5, to open thumbnails in IrfanView, selected in Everything.

Code: Select all

custom_open_command02=$exec("C:\BIN\i_view32.exe" %* /thumbs)
(Likewise, I also set up a hotkey to do this.)

Based on above, I'd think this would get you working (so sans the quotes around /slideshow).

Code: Select all

$exec("C:\Users\Home\Apps\IrfanView\i_view64.exe" %* /slideshow)

(Oh, & IrfanView is kind of brain-dead on Long File Names, & maybe some other quirks, but... all in all, it works.)
Native2904
Posts: 112
Joined: Mon Nov 22, 2021 8:36 pm

Re: From CustomCommand to IrfanView as Slideshow

Post by Native2904 »

The Command:

Code: Select all

$exec("C:\Users\Home\Apps\IrfanView\i_view64.exe" %* /slideshow)
shows only one selected picture in the GUI and send me an error message
2026-02-12_212156.png
2026-02-12_212156.png (8.41 KiB) Viewed 2470 times
Last edited by Native2904 on Thu Feb 12, 2026 8:28 pm, edited 1 time in total.
Native2904
Posts: 112
Joined: Mon Nov 22, 2021 8:36 pm

Re: From CustomCommand to IrfanView as Slideshow

Post by Native2904 »

The Thumbs command works correctly, whereas the Slideshow command fails, as described above.
2026-02-12_214533.png
2026-02-12_214533.png (15.84 KiB) Viewed 2457 times
therube
Posts: 5711
Joined: Thu Sep 03, 2009 6:48 pm

Re: From CustomCommand to IrfanView as Slideshow

Post by therube »

So it seems /slideshow is looking for either a directory name, or a "text file" (with a listing of file names, I suppose it would be).

Code: Select all

/slideshow=txtfile -        play slideshow with the files from 'txtfile' 
/slideshow=folder  -        play slideshow with the files from 'folder'
So if you...
selected the file names from within Everything
wrote those out to a "text file"
then used that "text file" as the input to IrfanView

Selecting is easy
then hotkey to send them to text file, that then is used as input to IV....

(as far as i can can go, at the moment...)


C:\>i_view /slideshow=c:\out
That works, so just have to figure out the rest...
Native2904
Posts: 112
Joined: Mon Nov 22, 2021 8:36 pm

Re: From CustomCommand to IrfanView as Slideshow

Post by Native2904 »

Thanks so far. I’ll try to generate a list of all marked files in Everything and save it to use with IrfanView.
Native2904
Posts: 112
Joined: Mon Nov 22, 2021 8:36 pm

Re: From CustomCommand to IrfanView as Slideshow

Post by Native2904 »

I figured it out… just replace IrfanView with VoidImage Viewer — Voila

Code: Select all

$exec("C:\Everything\Tools\ImageViewer\voidImageViewer.exe" %* /slideshow /minimal)
2Void
Could you add please a command to automatically close the instance after a slideshow?

Code: Select all

/closeslideshow
void
Developer
Posts: 19830
Joined: Fri Oct 16, 2009 11:31 pm

Re: From CustomCommand to IrfanView as Slideshow

Post by void »

I will consider a /close command line option.

Thank you for the suggestion.
therube
Posts: 5711
Joined: Thu Sep 03, 2009 6:48 pm

Re: CustomCommand to a Slideshow

Post by therube »

(On the IrfanView end...)

You could do something like... select files in Everything, then send those file names (path+name) [via hotkey] to a batch file that parses the names & runs IrfanView.

Everything-slideshow.bat:

Code: Select all

for %%i in (%*) do echo %%i >> c:\out\iLIST.TXT
pause

i_view32.exe        /slideshow=c:\out\iLIST.TXT   /closeslideshow
pause

:: clear iLIST.TXT
echo.                        > c:\out\iLIST.TXT
pause
:: doing an "Export" this way, you will be limited by SHELL considerations (i think it is)
:: so maybe something ~8000 chars of exported data (& if longer, it simply fails).
:: that would be fullpathlengths up to ~8K

:: can you Export, through Everything, in an automated fashion?
:: $exec(Everything -export %* > c:\out\iLIST.TXT)

:: Keyboard -> File | Custom Open 1 ---> A+I
:: $exec("C:\BIN\Everythihng_slideshow" %*)
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: CustomCommand to a Slideshow

Post by NotNull »

These days that is even possible without a batchfile, by using search commands instead.

"Install"
Out of the box, search commands are not allowed to make changes to the system, like in this case: writing a file to disk.
To allow it, follow these steps.

After that:
  • Create a new bookmark (Menu => Bookmarks => Organize Bookmarks)
  • Name = Irfanview slideshow
    (or any name you like)
  • Search = (Custom) =

    Code: Select all

    /export -txt -selection-only -bom "t:\slideshow.txt"
    /run "T:\iview473_x64\i_view64.exe" /slideshow=t:\slideshow.txt" /closeslideshow 
    
    (Change the filelocations to match your own setup)
  • Keyboard shortcut = `CTRL + ALT + i`
    (or any other available keyboard shortcut)
  • OK, OK
  • Done!

Use
  • In the main Everything window, slect some pictures for the slideshow (`CTRL + A` if you want all pictures to be in the slideshow)
  • Press your keyboard shortcut ( `CTRL + ALT + i`in the example)
  • Enjoy! :D

Notes
The /closeslideshow command-line option does exactly what one would expect it to do.
If the viewer should stay open afterwards, remove it.

During testing, I noticed that irfanview does not handle umlaut characters (ü,ä, etc.) properly in UTF-8 encoded files. No issues detected when UTF-8-BOM encoded (that is what the bookmark uses).
Maybe someone should report this @irfan. I simply keep using voidimageviewer ;)
Native2904
Posts: 112
Joined: Mon Nov 22, 2021 8:36 pm

Re: CustomCommand to a Slideshow

Post by Native2904 »

2
therube & NotNull

Thank you very much, I really appreciate it.

The only difference between Irfan and Void is that Irfan is much more complicated and Void*s doesn't close automatically at the end...
However, I am more than satisfied with both solutions.
Post Reply