x
This website is using cookies. We use cookies to ensure that we give you the best experience on our website. More info. That's Fine
HPC:Factor Logo 
 
Latest Forum Activity

Copying only file metadata in Windows

Alt Bass Page Icon Posted 2015-03-10 8:24 PM
#
Avatar image of Alt Bass
H/PC Sensei

Posts:
1,169
Location:
Russia
Status:
What if I have a lot of files copy of which is already present and I just want to copy their "properties" like dates and NTFS permissions? Is there an easier approach than copying files (which does not preserve creation date?)?

Edited by Alt Bass 2015-03-10 8:35 PM
 Top of the page
C:Amie Page Icon Posted 2015-03-11 8:50 AM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
17,989
Location:
United Kingdom
Status:
Date preservation depends on how you copy them. If you copy via Explorer it loses them but if you do it via something that can access the MFT directly then you can.

RoboCopy with /DATS is probably the best you can hope for. As for just copying the meta data, no, I've not heard of that one and it would be very dangerous.
 Top of the page
Alt Bass Page Icon Posted 2015-03-11 6:45 PM
#
Avatar image of Alt Bass
H/PC Sensei

Posts:
1,169
Location:
Russia
Status:
Quote
C:Amie - 2015-03-11 11:50 AM

if you do it via something that can access the MFT directly then you can.


I want to argue that. Total Commander has an option "Copy NTFS permissions". Besides that I also use ExifTool to update file creation date with date from image metadata.

I am quite sure that they do not operate on MFT.
 Top of the page
C:Amie Page Icon Posted 2015-03-11 6:56 PM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
17,989
Location:
United Kingdom
Status:
Not sure if serious...

The attribution dates are written into the MFT Alt Bass. They don't go with the file, the file is agnostic to its meta data which lives in the disk journal; part of the MFT.
 Top of the page
Alt Bass Page Icon Posted 2015-03-11 7:16 PM
#
Avatar image of Alt Bass
H/PC Sensei

Posts:
1,169
Location:
Russia
Status:
I know that, I am saying that neither TotalCommander nor Exiftool do not operate on MFT as such, they rather use some Win32 calls.

Of course one can do anything if there is access to MFT. I am saying that this access is not needed.

Edited by Alt Bass 2015-03-11 7:16 PM
 Top of the page
Alt Bass Page Icon Posted 2015-03-11 7:20 PM
#
Avatar image of Alt Bass
H/PC Sensei

Posts:
1,169
Location:
Russia
Status:
Quote
/COPY:copyflag :: what to COPY for files (default is /COPYAT). (copyflags : D=Data, A=Attributes, T=Timestamps). (S=Security=NTFS ACLs, O=Owner info, U=aUditing info).



Quote
/COPY:copyflag :: what to COPY for files (default is /COPYAT).
(copyflags : D=Data, A=Attributes, T=Timestamps).
(S=Security=NTFS ACLs, O=Owner info, U=aUditing info).


Ummmmm, looks like a solution for me! Thanks for mentioning it!

Edited by Alt Bass 2015-03-11 7:21 PM
 Top of the page
Alt Bass Page Icon Posted 2015-03-11 7:20 PM
#
Avatar image of Alt Bass
H/PC Sensei

Posts:
1,169
Location:
Russia
Status:
Test for tag spilling.

P.S. Unclosed stroke tag does not spill to other posts.
P.P.S. Result of using code tag is confusing. Is it broken? I thought that code tag should screen any substitution and any other tag.

Edited by Alt Bass 2015-03-11 7:26 PM
 Top of the page
C:Amie Page Icon Posted 2015-03-11 8:37 PM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
17,989
Location:
United Kingdom
Status:
Windows Explorer has its own set of calls and there are lower lever calls that are exposed out of the file system driver in the kernel that directly manipulate the MFT.

The algorithm on this board only filters code spill down to the end of the post,, which weirdly includes the signature because the board by default applies signatures per-post. I had to hack it out of the forum and I didn't modify the rest of the filtering,
 Top of the page
Alt Bass Page Icon Posted 2015-03-12 12:02 PM
#
Avatar image of Alt Bass
H/PC Sensei

Posts:
1,169
Location:
Russia
Status:
But why does CODE tag screen anything not?

 Top of the page
Jump to forum:
Seconds to generate: 0.171 - Cached queries : 67 - Executed queries : 8