ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

IDEA: AHK script to insert date and time to file name

(1/4) > >>

wetsmellydog:
While backing up some info today, I thought how cumbersome it is to type the date and time into the file name. It would be nice to have a shortcut that could do that.
Yes I know there is a time/date stamp on the file BUT this makes the file name unique too.

EX:

            "inserted text"
foobar 06_25_10 9-30am (does not have to follow this exact format just an idea)

Apologies up front if this has already been done but unfortunately I have not been able to find it.

Thanks!
Larry

lanux128:
is this what you're looking for? TimeStamp 2.1 by Skrommel..

• https://www.donationcoder.com/forum/index.php?topic=13669.msg116805#msg116805

wetsmellydog:
is this what you're looking for? TimeStamp 2.1 by Skrommel..

• https://www.donationcoder.com/forum/index.php?topic=13669.msg116805#msg116805
-lanux128 (June 25, 2010, 11:53 AM)
--- End quote ---

Thanks for the link. Will have to take a look...one thing I notice is the formatting...certain characters are no no for file naming.

lanux128:
yes, that script was originally made to be pasted in the active window but in your case, the reserved characters should be excluded.

The following reserved characters are not allowed in file/folder naming: ! @ # $ % ^ & * ( ) + = ~ ` < > : " / \ | ? *
--- End quote ---

IainB:
I use this - prune it how you like.
Having the date in ISO format at the front of the file name makes for good document filing/sorting.

AutoHotKey script:
^+d::  ; Ctrl+Shift+d outputs current date+time
   FormatTime, CurrentDateTime,, yyyy-MM-dd HHmm  ; It will look like 2010-12-21 0353hrs
   SendInput %CurrentDateTime%hrs
   return

--- End quote ---

Navigation

[0] Message Index

[#] Next page

Go to full version