Search the web
Sign In
New User? Sign Up
AutoHotkey
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Need help on generating filenames based on date/time.   Message List  
Reply | Forward Message #223 of 528 |
Re: [AutoHotkey] Need help on generating filenames based on date/time.

Dear Dave,
 
Filename = % A_Now  ;assigns the curennt time string to variable Filename
Filename = % A_Now ".txt" ; for a filename with .txt extension
;To Append some text to the file
FileAppend,"Some text",%Filename%
;to open the above file in a text editor
Run, %Filename%
 
save the above as an .ahk file and see the results.
 
Please visit AutoHotkey's forum for more help http://www.autohotkey.com/forum/
Your might find more answers for your query.
 
Thanking you,
Regards,
Goyyah aka Suresh
 
 
----- Original Message -----
Sent: Monday, March 06, 2006 9:46 PM
Subject: [AutoHotkey] Need help on generating filenames based on date/time.

Hello.  New group member.  Glad to find a AutoHotKey group!

I have already RTFM'd.

I need the code to write out a file with the name
20060306100624
CCYYMMDDhhmmss
I'd prepend some description and append the file extension.

I know it involves something like: FormatTime, TimeVar, yyMMddHHmmss,
but I am truly lost after that.

Can anyone explain what I need to do, or point out the reference in
the fine manual?

Thanks!

Dave P






Mon Mar 6, 2006 4:34 pm

goyyah
Offline Offline
Send Email Send Email

Forward
Message #223 of 528 |
Expand Messages Author Sort by Date

Hello. New group member. Glad to find a AutoHotKey group! I have already RTFM'd. I need the code to write out a file with the name 20060306100624 ...
Dave Przebiegelec
an_american_...
Offline Send Email
Mar 6, 2006
4:17 pm

Dear Dave, Filename = % A_Now ;assigns the curennt time string to variable Filename Filename = % A_Now ".txt" ; for a filename with .txt extension ;To Append...
A N Suresh Kumar
goyyah
Offline Send Email
Mar 6, 2006
4:35 pm

=> Thank you <= That got me close enough to do a hotkey timestamped archive of a critical file I work in a lot. Dave -- In AutoHotkey@yahoogroups.com, "A N...
Dave Przebiegelec
an_american_...
Offline Send Email
Mar 7, 2006
3:03 am

Dear Dave, I would love to see you @ AHK Forum. Please find time to visit http://www.autohotkey.com/forum/ Regards, Goyyah aka Suresh ... From: Dave...
A N Suresh Kumar
goyyah
Offline Send Email
Mar 7, 2006
7:26 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help