Results 1 to 3 of 3

Thread: Use of text patterns in filename from commandline

  1. #1
    IV Newbie
    Join Date
    Feb 2009
    Location
    Victoria, Australia
    Posts
    2
    Version
    IrfanView 4.23
    OS
    Win XP Pro SP3
    CPU Cores
    1

    Unhappy Use of text patterns in filename from commandline

    I'm trying to run a batch script to convert and rename a bunch of images. I'm trying to insert the date into the filename using the $T pattern, but I only want something like "imagename_20090127.png." rather than the very long date normally produced by $T

    My file name pattern is $N_$T(%Y%m%d).png (following the example in the Help file)

    What I'm getting is imagename_md.png (in other words its putting "m" and "d" at the end of the name, rather than the real month and day value, and its ignoring the %Y pattern altogether.

    What am I doing wrong?

    Here's my entire command line string:
    i_view32 D:\images\*.JPG /resize=(300,0) /resample /aspectratio /convert=$N_$T(%Y%m%d).png
    Last edited by dreamdive; 11.02.2009 at 09:32 AM.

  2. #2
    Professional User Skippybox's Avatar
    Join Date
    Jul 2008
    Location
    Detroit, MI USA
    Posts
    2,030
    Version
    IrfanView 4.25
    OS
    32-bit Win XP Home SP2
    CPU Cores
    1

    Default

    You must double the % signs when using a batch file.

    See:
    http://en.irfanview-forum.de/vb/showthread.php?t=2706

  3. #3
    IV Newbie
    Join Date
    Feb 2009
    Location
    Victoria, Australia
    Posts
    2
    Version
    IrfanView 4.23
    OS
    Win XP Pro SP3
    CPU Cores
    1

    Default

    many thanks, that works fine now

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
  •