Announcement

Collapse
No announcement yet.

problematic command line offered from I_view to convert pics into a multitif

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

    problematic command line offered from I_view to convert pics into a multitif

    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)
    Last edited by riow; 05.07.2010, 09:18 AM.

    #2
    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.


    Example:
    @echo off
    cls
    setlocal

    :: --- 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

    endlocal
    »Und so, in eurer Verzweiflung, kommt ihr zu mir.«

    Texteditor EmEditor:
    Deutsche Sprachdatei (v7.01) für EmEditor Pro 7.02 (englisch)
    EmEditor Pro 8.06 (deutsch) | Deutsche Sprachdatei (v8) für EmEditor Pro 8.06 (englisch)
    Deutsche Sprachdatei (v9.16) für EmEditor Pro 9.17 (englisch)

    Comment

    Working...
    X