-
January 18th, 2006, 03:50 PM #1Member
- 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
-
May 18th, 2008, 03:37 PM #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
-
May 19th, 2009, 06:25 AM #3Junior Member
- Join Date
- May 2009
- Posts
- 1
%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
-
Batch File Help
By Walter Felton in forum Applications and Operating SystemsReplies: 1Last Post: November 13th, 2005, 12:42 AM -
Batch File Help
By Walter Felton in forum IMO CommunityReplies: 3Last Post: November 10th, 2005, 08:20 PM -
looking for file sort / rename utility
By stevemu in forum Applications and Operating SystemsReplies: 1Last Post: October 22nd, 2004, 05:56 PM -
batch file help
By DVNT1 in forum Technical SupportReplies: 22Last Post: November 18th, 2002, 06:42 PM -
file rename utility needed asap. Please!
By jman01pa in forum General Tech DiscussionReplies: 7Last Post: January 29th, 2002, 01:17 PM



LinkBack URL
About LinkBacks



Reply With Quote


I wish you the best Surreal. You will be in my thoughts and prayers. Dying while asleep is what I hope for too. I have read that it IS for the best rather than a long, slow decline but it hurts....
Is It Just Me? v233893843