View Full Version : problematic command line offered from I_view to convert pics into a multitif

05.07.2010, 09:13 AM
I've created a simple .bat and put it into SendTo folder. I select two jpg in win explorer and select the .bat from Sendto. I_view prompts two errors for the two jpg one by one in two different dialog screen. The errors are:

Error! Can't Load: '"L:\temp\long path\pictures\pic1.jpg"'
Error! Can't Load: '"L:\temp\long path\pictures\pic2.jpg"'

After having bypassed the two error prompts by clicking the OK buttons twice, I_view generate an 8 bytes multitif.tif file. I noticed that there's single quotation marks shown for the filename in the prompt. When send selected files to Sendto from explorer, those files will be added double quotation marks automatically. Are the double quotation marks or the extra single quotation marks or the long filename can't be recognized by I_view?

The .bat is very simple that it contains a line only shown below.

"C:\Program Files\IrfanView\i_view32.exe" /multitif=(multitif.tif,%1,%2)

05.07.2010, 12:25 PM
The solution is very simple: Windows transfers the full path automatically with double quotation marks into the replaceable parameters (%1, %2, ...) and IrfanView has a big problem with that. Delete this marks and it works great.


@echo off

:: --- Configuration --->

:: Path to IrfanView
set iview=C:\IrfanView\i_view32.exe

:: Destination path for multipage tif
set tifpath=C:\Meine Bilder

:: File name for multi tif picture
set tifname=multitif.tif

:: <--- Configuration ---

"%iview%" /multitif=(%tifpath%\%tifname%,%~1,%~2) /killmesoftly