Copying creation dates and times

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
ykeyke
Junior Member
Junior Member
Posts: 5
Joined: 2012-10-25, 18:08 UTC

Copying creation dates and times

Post by *ykeyke »

Hi people,

I'm new here, I'd like to get some help for a doubt I have:

I have two bunches of files in two differents directories, which have the same names (the files, I mean), I want to copy only the creation attributes, nothing else, how I can do that without changing any of the other attributes.

Thanks in advance
User avatar
white
Power Member
Power Member
Posts: 6015
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

Do you mean creation dates and times?

You can set the file comments to the creation dates and times, copy the comments file to the target folder and in the target folder set the creation dates and times to those in the comments.
  • Select the files in the source
  • Select menu option Files/Change attributes
  • Enable option Change plugin attributes and enter:
    Plugin: tc
    Property: comment
    Value: [=tc.creationdate]
  • Click OK button
  • Copy hidden file named "descript.ion" to target
  • Go to target
  • Select menu option Files/Change attributes
  • Enable option Change plugin attributes and enter:
    Plugin: tc
    Property: creationdate
    Value: [=tc.comment]
  • Click OK button
(when using this example, seconds will be lost)
ykeyke
Junior Member
Junior Member
Posts: 5
Joined: 2012-10-25, 18:08 UTC

Post by *ykeyke »

Ok white, that's working fine, thank you.

Just a little notice, this didn't copy the seconds, only hours and minutes beside date obviously, but at least it isn't too important.

Greetings

Ah, something else, this process can it be automatized ?
User avatar
white
Power Member
Power Member
Posts: 6015
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

ykeyke wrote:Just a little notice, this didn't copy the seconds, only hours and minutes beside date obviously, but at least it isn't too important.
That's because [=tc.creationdate] does not include seconds. Just use the format modifiers to include them.
ykeyke wrote:Ah, something else, this process can it be automatized ?
Not without using automation software.
ykeyke
Junior Member
Junior Member
Posts: 5
Joined: 2012-10-25, 18:08 UTC

Post by *ykeyke »

white wrote: That's because [=tc.creationdate] does not include seconds. Just use the format modifiers to include them.
I'm afraid not to be familiarized with this program, so don't know how to proceed with "format modifiers", can you point me to the right direction ??

Thanks
User avatar
white
Power Member
Power Member
Posts: 6015
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

ykeyke wrote: I'm afraid not to be familiarized with this program, so don't know how to proceed with "format modifiers", can you point me to the right direction ??
[=pluginname.fieldname.unit]
Insert field named "fieldname" from content plugin named "pluginname". "unit" may be an optional unit (if supported by that field), or a field formatter like YMD for date fields.
[=tc.creationdate.s] will generate seconds only.
[=tc.creationdate.YMD hms] generates date/time in "YMD hms" format including seconds.

You can also use the + button in the change attributes dialog and select one of the predefined formats.
ykeyke
Junior Member
Junior Member
Posts: 5
Joined: 2012-10-25, 18:08 UTC

Post by *ykeyke »

OK white, I get it, thank you...

Greetings
ykeyke
Junior Member
Junior Member
Posts: 5
Joined: 2012-10-25, 18:08 UTC

Post by *ykeyke »

Hi again,

I know this is a bit old post, but as the doubt is the sequel of the same, I'm posting here, sorry for any inconvenience, and feel free to let me know if against rules...

Well, until now I was copying the creation date time using the above, but this has the inconvenience of the need of having as much comments files (the bridge between old and new files) as folders and sub-folders I have. So my issue is, is there any way to create a unique comment file that contains information on files in folder and in sub-folders, obviously respecting locations??? And how I do the reverse process, and import data in the comment file to new files in folder and sub-folders (knowing that sometimes, I will not have the same directory structure!!!).

Thanks in advance.
Post Reply