Results 1 to 2 of 2

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

  1. #1
    IV Amateur
    Join Date
    Dec 2008
    IrfanView 4.23
    Win Vista Home Basic
    CPU Cores

    Default 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 at 08:18 AM.

  2. #2
    Power User Foxy's Avatar
    Join Date
    Aug 2007
    IrfanView 4.25
    32-bit Win XP Pro SP3


    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

    »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)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts