Announcement

Collapse
No announcement yet.

Use of text patterns in filename from commandline

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

    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, 10:32 AM.

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

    See:

    Comment


      #3
      many thanks, that works fine now

      Comment

      Working...
      X