SEEK: utility to add file date to name

Discussion in 'Digital Cameras' started by jasper, Mar 4, 2009.

  1. jasper

    jasper Guest

    I want to date stamp my image files (JPEG, GIF, etc).

    Is there a free utility for WinXP which renames a file by adding
    the file's Modified Date to it's file name?
    jasper, Mar 4, 2009
    1. Advertisements

  2. jasper

    Joe Makowiec Guest

    Exiftool does this nicely:
    Joe Makowiec, Mar 4, 2009
    1. Advertisements

  3. jasper

    jasper Guest

    Exiftool? My image files do not contain any data in the EXIF

    I want to rename the files to make the name include the file's
    Modified Date as displayed in XP's file properties.

    (If it makes it clearer, you could assume these files are not
    image files.)
    jasper, Mar 4, 2009
  4. Well, then I wonder, what your question has to do with photography.
    This 4 line Perl script will do that simple job nicely:

    for (@ARGV){
    my ($day, $month, $year) = (localtime((stat($_))[9]))[3..5];
    $year += 1900; $month += 1;
    rename $_, "$year-$month-$day-$_";

    Jürgen Exner, Mar 4, 2009
  5. jasper

    Susan Bugher Guest

    THE Rename can do that. See the "FileDateEx" topic in the help file.

    Program: THE Rename
    Author: Hervé Thouzard
    Windows 95; 98; ME; 2000; XP; Windows Server 2003
    Ware: (Donationware) (free)

    Changing the subject. The Rename (primarily a file renamer) can also
    change the file date. Photographers take note. . .

    Change files date and time

    This option allows you to modify creation's date, last access date and
    the last modification's date for a file. You can also modify the timestamp.


    The EXIF option is very usefull if you have photos you have made with
    your digital camera. Recent cameras add information about date and time
    (and many other things) inside the photos. You can use this date and
    time (if they are available) to change the file's date and time.


    Posted to alt.comp.freeware
    Search alt.comp.freeware (or read it online):
    Pricelessware & ACF:
    Pricelessware: (not maintained)
    Susan Bugher, Mar 4, 2009
  6. jasper

    Dave Cohen Guest

    The freeware program renamemaster.exe will do what you want. It's a
    standalone program, just save and create a shortcut to it.
    Dave Cohen
    Dave Cohen, Mar 4, 2009
  7. jasper

    Kartnin Guest

    Looks good. It's not exactly "intuitive" is it?

    Can't find how to change to another folder!
    Kartnin, Mar 4, 2009
  8. jasper

    me Guest

    Use the batch rename function of Irfanview.
    me, Mar 4, 2009
  9. jasper

    Susan Bugher Guest

    Look at the tabs that are shown on top of the right pane - select
    "folders" to see the folder navigation tree.

    Posted to alt.comp.freeware
    Search alt.comp.freeware (or read it online):
    Pricelessware & ACF:
    Pricelessware: (not maintained)
    Susan Bugher, Mar 4, 2009
  10. jasper

    Justin C Guest

    I was going to suggest Perl, but that there would a steep learning
    curve... but you went one, or several better and provide a solution.

    Had to refer to docs to fully understand it though. Impenetrable, but
    elegant in it's brevity.

    Justin C, Mar 4, 2009
    Jürgen Exner, Mar 4, 2009
  12. jasper

    M.L. Guest


    Add Rule -> Insert -> Suffix -> InsertMetaTag (File_DateModified)
    M.L., Mar 5, 2009
  13. jasper

    Ofnuts Guest

    There is surely a way with plain Windows shell commands (because in a
    "for" loop, you can use "%~tF" to obtain the date/time string of the
    file in a %F(*). However, using it to _insert_ a readable date/time in
    the file name isn't going to be pretty, certainly much less readable
    than its Perl equivalent. There could also be a way with \/15u4|8451(.

    (*) for instance,try:
    for %F in (*.*) do @echo %F is dated %~tF
    Ofnuts, Mar 5, 2009
  14. jasper

    J. Clarke Guest

    Just a comment but Windows has more powerful tools than the command or cmd
    shells available.

    2K and later have Windows Scripting Host that runs vbscript and jscript code
    from the command line--with older versions of windows you have to invoke it
    with cscript (i.e. cscript helloworld.vbs) but in Vista you can just type
    "helloworld" on the command line and if helloworld.vbs is anywhere in your
    search path it will run.

    If you search the Microsoft site on "Windows script" you'll find quite a lot
    of information.

    When Vista shipped they added another capability, the Powershell, which is
    downloadable for Vista and XP--that's a full Unix-style shell with complete
    scripting capability, but it is not exactly a clone of any of the Unix
    shells--Microsoft as usual went off in their own direction.

    For someone versed in vbscript, jscript, or Powershell scripting such an
    application should be easy to toss off.

    All that said, since there are decent purpose-made applications for that
    particular task that can be obtained free or at nominal cost there's no real
    point to writing a script, but I thought I would mention this.
    J. Clarke, Mar 5, 2009
  15. jasper

    Justin C Guest

    Justin C, Mar 5, 2009
  16. jasper

    Marty Fremen Guest

    Use this rename pattern: $N $T(%d-%m-%Y)
    $N = original name, $T = file date, followed by the desired date format.
    Pressing the help button in the batch dialog will give you fuller info with

    I don't think the month can be done in words, only numbers. The above would
    give "DIAGRAM 15-06-2008.GIF"
    Marty Fremen, Mar 6, 2009
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.