Note: I have edited this post because, from Irfanview v4.40, the feature provided by the script file below has been incorporated into the program itself. I have added it as item 4 of what you can now do with an Irfanview shortcut. Although it means that nobody is going to need this script again, the same limitations apply to the feature in Irfanview v4.40 as in version 1.1 of this script. What a good job I am up to version 1.8. Irfanview still has a long way to go to catch up.
So do read the introduction below to discover what this is all about, but you will probably then want to skip on to v2 of the script in the second post of this thread.
Four things you can do with a shortcut to Irfanview are
1. Double click on it, then use File>Open to select and display the image.
2. Drag a single image file from Windows Explorer and drop it onto the shortcut.
3. Drag a folder containing image files from Windows Explorer and drop it onto the shortcut.
4. (New) Drag more than one image file from Windows Explorer and drop them onto the shortcut.
In each of methods 1 to 3 above, one file is opened and displayed, but Irfanview also prepares a browse list of all the other image files in the folder so that they can be displayed by using the arrow icons or keys. Before listing the files are filtered to check that file types are only those chosen in the Associations tab of Options/Properties and then sorted into the order specified in Options>Sort directory files. The first image is not displayed until all the filtering and sorting is complete.
Annoyances reported by users are
a. Big folders containing a very large number of files can take a long time before the first image is seen.
b. The order of the files as they were shown in Windows Explorer is changed, even if No Sort is requested.
c. Only real folders are supported. Virtual folders that Windows Explorer can show such as Libraries or Search results cannot be used.
These are now all possible in IV v4.40 using method 4 above which behaves exactly as the script described below does.
This Visual Basic script file is intended to be used as an Irfanview shortcut. It behaves just like a standard Irfanview shortcut for cases 1 to 3 but will also accept a random set of files selected from any real or virtual Windows Explorer folder and dragged onto it. It builds the selected file names into a list and then launches Irfanview using the /filelist=txtfile Command line option. You no longer need to have the whole folder in the Browse list and the order of the files can be kept as they were in the Explorer window.
This code can be copied and pasted into Notepad. Edit line 1, if you need to specify a different location for the Irfanview exe file, and then Save it as a .vbs file. A readme.txt file is attached below the listing with a bit more information.
So do read the introduction below to discover what this is all about, but you will probably then want to skip on to v2 of the script in the second post of this thread.
Four things you can do with a shortcut to Irfanview are
1. Double click on it, then use File>Open to select and display the image.
2. Drag a single image file from Windows Explorer and drop it onto the shortcut.
3. Drag a folder containing image files from Windows Explorer and drop it onto the shortcut.
4. (New) Drag more than one image file from Windows Explorer and drop them onto the shortcut.
In each of methods 1 to 3 above, one file is opened and displayed, but Irfanview also prepares a browse list of all the other image files in the folder so that they can be displayed by using the arrow icons or keys. Before listing the files are filtered to check that file types are only those chosen in the Associations tab of Options/Properties and then sorted into the order specified in Options>Sort directory files. The first image is not displayed until all the filtering and sorting is complete.
Annoyances reported by users are
a. Big folders containing a very large number of files can take a long time before the first image is seen.
b. The order of the files as they were shown in Windows Explorer is changed, even if No Sort is requested.
c. Only real folders are supported. Virtual folders that Windows Explorer can show such as Libraries or Search results cannot be used.
These are now all possible in IV v4.40 using method 4 above which behaves exactly as the script described below does.
This Visual Basic script file is intended to be used as an Irfanview shortcut. It behaves just like a standard Irfanview shortcut for cases 1 to 3 but will also accept a random set of files selected from any real or virtual Windows Explorer folder and dragged onto it. It builds the selected file names into a list and then launches Irfanview using the /filelist=txtfile Command line option. You no longer need to have the whole folder in the Browse list and the order of the files can be kept as they were in the Explorer window.
This code can be copied and pasted into Notepad. Edit line 1, if you need to specify a different location for the Irfanview exe file, and then Save it as a .vbs file. A readme.txt file is attached below the listing with a bit more information.
Code:
THE CODE HAS BEEN MOVED TO THE README.TXT FILE TO PREVENT IT FROM BEING CORRUPTED
Comment