Announcement

Collapse
No announcement yet.

can't read file header via running from commandline

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

    can't read file header via running from commandline

    OS: WinXpSp3 (English)
    irfanview: ver. 4.28


    For I want to open a pic named 3.png by irfanview directly, I wrote a commandline file named AAA.bat with contents:
    Code:
    PATH "C:\Program Files\IrfanView"
    START "" i_view32.exe /slideshow=C:\3.png



    However, after running the AAA.bat, irfanview returns error message:
    Code:
    PNG: Can't read file header!
    Unknown file format or file not found!
    (for unicode file names please activate the Unicode Plugin in 'Properties->Languages')
    So, I go to 'Properties->Languages' and checked in the only box below, but nothing help.

    I'm sure that the pic 3.png has no problem, because it is the original file without any editing. And, it can be open via dropping into irfanview, or via irfanview's menu 'File - Open'.

    How to use COMMANDLINE to open this pic ? Since I need the bat file for other usage.
    Any response will be appreciated.
    Last edited by mebanna; 12.06.2011, 09:49 AM.

    #2
    There seems to be something obviously wrong with the quotation marks in the START line.
    Before you post ... Edit your profile • IrfanView 4.62 • Windows 10 Home 19045.2486

    Irfan PaintIrfan View HelpIrfanPaint HelpRiot.dllMore SkinsFastStone CaptureUploads

    Comment


      #3
      Pesala, thanks your response.

      The quotation marks with blank is not a syntax mistake, it's about leaving blank for name of the DOS-window genarated by START command.
      Well, I tried other two possibility below, and nothing help yet..


      Code:
      PATH "C:\Program Files\IrfanView"
      START "aaa" i_view32.exe /slideshow=C:\3.png
      Code:
      PATH "C:\Program Files\IrfanView"
      START i_view32.exe /slideshow=C:\3.png

      Sorry, I forgot to state my environment:
      =========
      OS: WinXpSp3 (English)
      irfanview: ver. 4.28
      Last edited by mebanna; 12.06.2011, 09:53 AM.

      Comment


        #4
        Use the command line parameters correct; example:
        "C:\IrfanView\i_view32.exe" /slideshow="C:\My Pictures"
        The ”/slideshow” parameter do not support a special picture file announcement.
        »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


          #5
          Foxy, thanks very much !

          I misunderstood the example in HELP file :
          Code:
          i_view32.exe /slideshow=c:\images\test*.jpg

          Comment

          Working...
          X