home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Applications and Operating Systems
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Topic: 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 ...
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 1613
Discussions: 186,255, Posts: 2,222,986, Members: 229,817
Old January 18th, 2006, 03:50 PM   Digg it!   #1 (permalink)
Member
 
Join Date: Nov 2002
Posts: 227
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

jp22382 is offline   Reply With Quote
Old May 18th, 2008, 04:37 PM     #2 (permalink)
Banned
 
Keymaker's Avatar
 
Join Date: Jan 2005
Location: Loveland, CO
Posts: 5,493
Blog Entries: 2
Send a message via ICQ to Keymaker Send a message via Yahoo to Keymaker
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

Keymaker is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

Most Active Discussions
Is It Just Me? (16994)
FolderChat: Weekend time again! (313)
The F word (under-utilized or horri.. (43)
So GLAD winter's finally here !! (27)
Motherboard installation (8)
Folderchat Weekday thread (373)
Super folding (20)
no good at fps.... (6)
Popular Online Pc Retailers (12)
Recent Discussions
Cheap refurbished computer? (0)
My Best OC Ever (8)
help (0)
HP Combo 535r problem... (0)
can anyone recomend a 1KW psu?? (4)
Motherboard installation (8)
vista will not load (0)
New info on the Phenom II X4 (5)
Web Hosting and Domain? (16)
9800GTX 512meg (9)
Six 28-Disc Cross Design Black .. (1)
FS: New Benny Hill Megaset DVD .. (1)


All times are GMT -4. The time now is 09:33 AM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28