Home » Infrastructure » Windows » Attach timestamp to filename
Attach timestamp to filename [message #231812] Wed, 18 April 2007 08:16 Go to next message
gajini
Messages: 259
Registered: January 2006
Senior Member
Hi,

In Windows,how to create a new file with
timestamp attached to filename?

Thanks..
Re: Attach timestamp to filename [message #231817 is a reply to message #231812] Wed, 18 April 2007 08:49 Go to previous messageGo to next message
tahpush
Messages: 961
Registered: August 2006
Location: Stockholm/Sweden
Senior Member

I have never done this on windows but ...

this might give you a hint on how to accomplish this

C:\>echo tempfile_%date:~-0,10%_%time:~-0,10%.txt
tempfile_2007-04-18_15:47:45,1.txt


Also I found this

Good Luck

[Updated on: Wed, 18 April 2007 08:50]

Report message to a moderator

Re: Attach timestamp to filename [message #232332 is a reply to message #231817] Fri, 20 April 2007 03:16 Go to previous message
tahpush
Messages: 961
Registered: August 2006
Location: Stockholm/Sweden
Senior Member

Did it work out for you ?
Previous Topic: Excel ODBC - Microsoft Query - slow with 10GR2
Next Topic: Using enterprise mgr and database on the same PC. help plz.
Goto Forum:
  


Current Time: Mon Dec 05 11:15:45 CST 2016

Total time taken to generate the page: 0.14210 seconds