I'm making a simple program that copies files created or modified since it was last run. What's the best way to store the time the program itself was last run? I was thinking it could have a text file that it would store the date and time in but is there a way that doesn't require external files? Windows has a "last modified" date but I don't know of a "last used" date.
I think any method requires a file or a modified file including the registry method suggested in the comments. While technically a file, the Alternative Data Stream capability of NT file systems is one method. Here's a good description. http://www.bleepingcomputer.com/tutorials/windows-alternate-data-streams/