hi all,

i've done a little prog. to change creation time attribute of files.
During creation time changing i would like to set a flag in the file, to recognize that the creation date has been already changed and is not original.

some1 know a way to do it ?

THX B7
Posted on 2002-01-24 02:19:31 by Bit7
If it is an executable file leave a signature consisting of nop instructions.
Posted on 2002-01-24 05:29:00 by CodeLover
perhaps by writing something in a reserved section of the FAT/NTFS ?
Posted on 2002-01-24 05:30:48 by JCP
In that case, if you take the file to other computer you would not know it was modified.
Posted on 2002-01-24 05:34:01 by CodeLover
If you mean for any file, generally... then no. Well, perhaps set the
seconds to some predefined value, but I dunno if that's too useful.

If you only need to do this for your own files, nothing stops you from
putting a "hasFileBeenModified" flag somewhere in your file data.
Posted on 2002-01-24 07:06:11 by f0dder
In text files you can add a space ASCII character.

Yes, i know, it is not the better solution, and also it will increment the file 1 byte.

Let me ask you a question: What are you coding? You are not creating some kind of "badware", are you?
Posted on 2002-01-24 09:00:23 by CodeLover
On NTFS you can write some info into the NTFS streams :)
Posted on 2002-01-24 09:21:16 by bazik
Thanks all.

f0dder,

nice idea :) I think i will use your suggestion: a combination of msec and sec will recognize a not original file.

CodeLover,

i'm a good boy. The idea of this file creation time alignment was suggested from my desk-job-neighbour: he sais that could be useful a prog. to align creation time just to release a software product with all the files created at same day/time. Just for an order reason, the day of release will be equal for all the files. Attached my prog, just look if can be useful...


Bye B7
Posted on 2002-01-24 16:19:18 by Bit7