+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Nov 2002
    Posts
    228

    Batch file to copy/rename file with current time

     
    Hey all, im working on a batch file (for the hell of it) to copy a file and rename the copies with the current time hh:mm:ss

    I found this, but it does not include seconds.

    for /f "tokens=1" %%u in ('time /t') do set t=%%u
    if "%t:~1,1%"==":" set t=0%t%
    set timestr=%t:~0,2%%t:~3,2%

    I haven't been able to figure out how to get the seconds to display.

    The files are currently named as HHMM.ext I would like HHMMSS.ext

    TIA

  2. #2
    Banned Keymaker's Avatar
    Join Date
    Jan 2005
    Location
    Loveland, CO
    Posts
    5,490
    Blog Entries
    2
    Hmm, can't see your text when quoting... [Never mind. Spamer removed.]

    Old post but perhaps useful


    Alternatively you could try the following:


    MediaMonkey download and review - manage your music from SnapFiles

    MetatOGGer download and review - audio tagging and renaming tool from SnapFiles

    Exifer download and review - EXIF image viewer and editor from SnapFiles

  3. #3
    Junior Member
    Join Date
    May 2009
    Posts
    1

    Thumbs up %time% for hh:mi:ss:mm ....

    Well, you can use %time% parameter to parse seconds as well as milliseconds.
    Let me know if you need more leads over this.

    Thx
    FP

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Batch File Help
    By Walter Felton in forum Applications and Operating Systems
    Replies: 1
    Last Post: November 13th, 2005, 12:42 AM
  2. Batch File Help
    By Walter Felton in forum IMO Community
    Replies: 3
    Last Post: November 10th, 2005, 08:20 PM
  3. looking for file sort / rename utility
    By stevemu in forum Applications and Operating Systems
    Replies: 1
    Last Post: October 22nd, 2004, 05:56 PM
  4. batch file help
    By DVNT1 in forum Technical Support
    Replies: 22
    Last Post: November 18th, 2002, 06:42 PM
  5. file rename utility needed asap. Please!
    By jman01pa in forum General Tech Discussion
    Replies: 7
    Last Post: January 29th, 2002, 01:17 PM

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Recommended Sites: ResellerRatings Store Reviews