Results 1 to 5 of 5

Thread: can't read file header via running from commandline

  1. #1

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

  2. #2
    Moderator Enterprise User Bhikkhu Pesala's Avatar
    Join Date
    May 2007
    Location
    East London
    Posts
    6,452
    OS
    64-bit Win 10
    CPU Cores
    1

    Default

    There seems to be something obviously wrong with the quotation marks in the START line.

  3. #3

    Default

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

  4. #4
    Power User Foxy's Avatar
    Join Date
    Aug 2007
    Posts
    819
    Version
    IrfanView 4.25
    OS
    32-bit Win XP Pro SP3

    Default

    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)

  5. #5

    Default

    Foxy, thanks very much !

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

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
  •