home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Applications and Operating Systems
Ask a Tech Support Question (free)!

Batch file to copy/rename file with current time

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1530
Discussions: 200,952, Posts: 2,379,478, Members: 246,322
Old January 18th, 2006, 03:50 PM   Digg it!   #1 (permalink)
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
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,492
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
Old May 19th, 2009, 07:25 AM     #3 (permalink)
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
farrukh.pasha is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (2943)
The disrespect of Obama by Russian .. (41)
Making Health Care Worse (178)
Wireless Televisions. (12)
CPU fan stops spinning randomly (9)
Regular Build (11)
windows 7 problem (7)
Is the PSU I received dead? (12)
radeon x850xt platinum & shader.. (6)
Print spooler problem (15)
HIS HD5770 graphic card question (15)
windows vista security holes (10)
Install XP pro and a Vista laptop ?.. (11)
Foreign voltage (10)
Recent Discussions
tv not turn on-makes clicking sound (2)
SELLING FRESH,CVV,LOGINS,DUMPS,TRACKS.. (0)
CPU fan stops spinning randomly (9)
EVGA 9800 gtx help with finding a goo.. (11)
Regular Build (11)
Help with onclick and buttons (0)
Modern Warfare 2: Who Bought It? (63)
Virus advise (8)
My monitor won't turn on after instal.. (1)
Laptop with wireless problem. (3)
Internet Lost (3)
Dept. of HS: NSA 'Helped' Develop Vis.. (16)
windows vista security holes (10)
Point and Shoot Camera Suggestions. (4)
Multiple Restarts Required at Boot (2)
Ideal cheap graph card for PC-Gaming? (18)
radeon x850xt platinum & shader 3 (6)
Graphics Card Upgrade Question (4)
For Sale BFG GTX285 OC2 with 10 year .. (3)
How to convert MP3's (4)
Wireless Televisions. (12)
Hp Artist Edition + Matching Bag (0)
Asus P4G8X Mobo (6)
Xbox 360 GTA: SA disk error (1)
Is the PSU I received dead? (12)


All times are GMT -4. The time now is 05:03 AM.
TechIMO Copyright 2009 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