Results 1 to 3 of 3

Thread: Why doesnt my script work? Part 2

  1. #1
    IV Amateur jackw's Avatar
    Join Date
    Apr 2013
    Location
    NE Florida
    Posts
    10
    Version
    IrfanView 4.38
    OS
    32-bit Win XP Pro SP3
    CPU Cores
    4

    Default Why doesnt my script work? Part 2

    This command works from my XP command line:

    "C:\PROGRAM FILES\IRFANVIEW\I_VIEW32.EXE" f:\fanac\newstuff\nbrooks\deepsouth\d10.jpg /info=f:\fanac\newstuff\nbrooks\deepsouth\iview.wrk /cmdexit

    This one dose not:

    "C:\PROGRAM FILES\IRFANVIEW\I_VIEW32.EXE" f:\fanac\newstuff\nbrooks\deepsouth\d10.jpg /resize=(750,0) /aspectratio /cmdexit

    In both cases IView returned 0, does it ever return anything else?

    Help!

  2. #2
    Professional User Mij's Avatar
    Join Date
    Mar 2007
    Location
    Camberley, Surrey, UK
    Posts
    2,763
    Version
    IrfanView 4.51
    OS
    32-bit Win 10
    CPU Cores
    3

    Default

    OK let's deal with this post first, since we are talking about a Command line here (and not a Rexx script).

    The problem with
    "C:\PROGRAM FILES\IRFANVIEW\I_VIEW32.EXE" f:\fanac\newstuff\nbrooks\deepsouth\d10.jpg /resize=(750,0) /aspectratio /cmdexit
    is that you are not saving the file after you resized it.
    You can either use
    "C:\PROGRAM FILES\IRFANVIEW\I_VIEW32.EXE" f:\fanac\newstuff\nbrooks\deepsouth\d10.jpg /resize=(750,0) /aspectratio
    which will resize the file and then display it onscreen so that you can save it manually
    or you can use
    "C:\PROGRAM FILES\IRFANVIEW\I_VIEW32.EXE" f:\fanac\newstuff\nbrooks\deepsouth\d10.jpg /resize=(750,0) /aspectratio /convert=
    followed by the full path name of what to save it as (which can be the same as the file you opened should you want to overwrite it)

    After a /convert=.... option you do not need /cmdexit. It will exit automatically.
    As an aside you do not need it after your /info=... option in your other post either. That will close automatically, without saving or displaying anything since you have not changed the original image at all.

  3. #3
    IV Amateur jackw's Avatar
    Join Date
    Apr 2013
    Location
    NE Florida
    Posts
    10
    Version
    IrfanView 4.38
    OS
    32-bit Win XP Pro SP3
    CPU Cores
    4

    Default

    Thank you.

Thread Information

Users Browsing this Thread

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

Posting Permissions

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