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 -----From: Dave PrzebiegelecSent: Monday, March 06, 2006 9:46 PMSubject: [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