The "tt" indicates either "AM" or "PM", as the code was using the 12 hour clock.
Regarding your issues with timestamp cloning, I'm guessing that it is probably the "FileSetTime". I've always had troubles with that command in the past, where it would stop working on a seemingly random basis. Not sure what can be done about that.
This version will use a smarter file size display:
Code:
FileSelectFolder, SourceFolder, C:\
FileSelectFolder, DestFolder
MirrorFolder(SourceFolder,DestFolder)
MirrorFolder(SourceFolder,DestFolder)
{
Units = GB|GiB|1000000000,MB|MiB|1000000,KB|KiB|1000,|Bytes|1
Loop, %SourceFolder%, 1
PathLen := StrLen(A_LoopFileLongPath) + 1
Loop, %SourceFolder%\*, 1, 1
{
Path := DestFolder . SubStr(A_LoopFileLongPath,PathLen), FileAttributes := FileExist(A_LoopFileLongPath)
If InStr(FileAttributes,"D")
FileCreateDir, %Path%
Else
{
FormatTime, ModifyTime, %A_LoopFileTimeModified%, h:mm:ss tt dd/MM/yyyy
Loop, Parse, Units, `,
{
StringSplit, Temp, A_LoopField, |
Temp1 := A_LoopFileSize%Temp1%
If (Temp1 < Temp3)
Break
}
FileAppend,, %Path% (%Temp1% %Temp2%) (Modified at %ModifyTime%)
MsgBox "%Path% (%Temp1% %Temp2%) (Modified at %ModifyTime%)"
FileSetAttrib, +%A_LoopFileAttrib%, %Path%
FileSetTime, %A_LoopFileTimeModified%, %Path%, M
FileSetTime, %A_LoopFileTimeCreated%, %Path%, C
FileSetTime, %A_LoopFileTimeAccessed%, %Path%, A
}
}
}