DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: AppendDate  (Read 16,888 times)

c.gingerich

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 748
    • Participated in NANY Challenge Six Times
    • Coding Snacks
AppendDate
« on: May 11, 2012, 06:09 PM »
Since I write a lot of code and have tone of versions and files and archive a lot of files. I used to manually add the date to the end of files, but I started doing it so much I made an app for it. This adds an AppendDate item to the context menu of files. When you select it, it adds the current date to the end of the file name (i.e. MyFile_20120511.txt) You can change the date format in the settings dialog. Hope you find it as useful as I do.

Screenshot - 5_11_2012 , 12_55_08 PM.png

[UPDATE]
Now works on folders

[EDIT]
Made it so you can make your own format string to add to the file. See the ReadMe.txt for format options.
« Last Edit: May 12, 2012, 03:23 PM by c.gingerich »

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: AppendDate
« Reply #1 on: May 11, 2012, 06:22 PM »
Could it (optionally) add the date before the name, instead of at the end? That is an often used way of archiving ;)
Also the underscore-separator would optimally be a configurable option, and be able to leave it out, imho...
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

c.gingerich

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 748
    • Participated in NANY Challenge Six Times
    • Coding Snacks
Re: AppendDate
« Reply #2 on: May 11, 2012, 06:23 PM »
I think I can do that.  :)

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: AppendDate
« Reply #3 on: May 11, 2012, 06:25 PM »
Oh, and 'separator' only has 1 e, but 2 a's :-[
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,970
    • Gathering Badge
    • Participated in NANY Challenge Once
Re: AppendDate
« Reply #4 on: May 11, 2012, 07:01 PM »
Oh, and 'separator' only has 1 e, but 2 a's :-[

I had to double check that one - probably been misspelling it for years...



EDIT/ +1 to the date as prefix to filename request
Tom

daddydave

  • test
  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 867
    • Participated in NANY Challenge Once
Re: AppendDate
« Reply #5 on: May 11, 2012, 07:17 PM »
Oh, and 'separator' only has 1 e, but 2 a's :-[

I had to double check that one - probably been misspelling it for years...


My memory of hearing that separator has "a rat" in it has outlasted my memory of the name of the teacher who taught me that.

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,970
    • Gathering Badge
    • Participated in NANY Challenge Once
Re: AppendDate
« Reply #6 on: May 11, 2012, 07:24 PM »
Oh, and 'separator' only has 1 e, but 2 a's :-[

I had to double check that one - probably been misspelling it for years..

My memory of hearing that separator has "a rat" in it has outlasted my memory of the name of the teacher who taught me that.

sounds memorable all right :)
- but our problem is with the "par" as opposed to "per". Could remember it via golf (par) but not even half as memorable as a rat ;-)
Tom

joiwind

  • carpe momentum
  • Participant
  • Joined in 2009
  • *
  • Posts: 486
Re: AppendDate
« Reply #7 on: May 11, 2012, 07:41 PM »
Most European countries use DDMMYYYY - possible to add please ?

c.gingerich

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 748
    • Participated in NANY Challenge Six Times
    • Coding Snacks
Re: AppendDate
« Reply #8 on: May 11, 2012, 09:46 PM »
Update. Looks like a few like the idea so I made it so you can make your own format string to add to the file (and Prepend to file). See the ReadMe.txt for format options. Download from first post and see updated screen shot.

Sorry about the spelling, It's not my strong suit. :-)

nogojoe

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 174
Re: AppendDate
« Reply #9 on: May 12, 2012, 06:34 AM »
Update. Looks like a few like the idea so I made it so you can make your own format string to add to the file (and Prepend to file). See the ReadMe.txt for format options. Download from first post and see updated screen shot.

Sorry about the spelling, It's not my strong suit. :-)

handy app thanks   :Thmbsup:  could you add that it can apply to folders as well ?
Often the most convincing people are those who have lost the plot so much they don't recognize the difference between fact and fantasy

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: AppendDate
« Reply #10 on: May 12, 2012, 08:49 AM »
Works like a charm, thanks!
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

c.gingerich

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 748
    • Participated in NANY Challenge Six Times
    • Coding Snacks
Re: AppendDate
« Reply #11 on: May 12, 2012, 12:24 PM »
Thanks. I think i can have it work on folders also. I'll add that next.

c.gingerich

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 748
    • Participated in NANY Challenge Six Times
    • Coding Snacks
Re: AppendDate
« Reply #12 on: May 12, 2012, 03:24 PM »
Updated. It now works on folders. Download from first post.

x16wda

  • what am I doing in this handbasket?
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 888
    • Participated in NANY Challenge Once
Re: AppendDate
« Reply #13 on: May 12, 2012, 03:47 PM »
Useful - thanks! :up:
vi vi vi - editor of the beast

Original address: https://www.donationcoder.com/forum/index.php?topic=30968.0