SFT is a windows filetime adjust tool.
It is Freeware and Full MSVC SourceCode included.
Usage: SFT /T [/R] [/D] filename time
/T Control which time field[s] to set:
C Change creation time
A Change last access time
W Change last write time
/R Enumerate sub directories
/D Set directory time too (Windows NT only)
filename Filename,can include wildcard *
time Time is in YYYY-MM-DD,HH:MM:SS format
Examples: (Note 2 and 3 are different)
1:sft /tcw /r "d:\my webs\tools\*.exe" 2002-02-02,18:00:00
2:sft /tcaw /r /d docdir\*.* 2004-02-02 //Set all dirs&files under 'docdir'
3:sft /tcaw /r /d docdir 2004-02-02 //Set all dirs&files only has name 'docdir'
==========================================
WARNING:SFT has SE_BACKUP_NAME and SE_RESTORE_NAME privileges enabled,so if
you are an Admin of Windows NT system, SFT will overwrite almost any file's time
even if Admin has no access rights!(NOT including file with READ_ONLY attribute
and file are in using) Use it carefully!!!!!
==========================================
History:
v1.3 2004/10/10
Add /D switch , thanks to Marcus :)
Directory time Now can also be set if you are running Windows NT based OS.
It is Freeware and Full MSVC SourceCode included.
Usage: SFT /T [/R] [/D] filename time
/T Control which time field[s] to set:
C Change creation time
A Change last access time
W Change last write time
/R Enumerate sub directories
/D Set directory time too (Windows NT only)
filename Filename,can include wildcard *
time Time is in YYYY-MM-DD,HH:MM:SS format
Examples: (Note 2 and 3 are different)
1:sft /tcw /r "d:\my webs\tools\*.exe" 2002-02-02,18:00:00
2:sft /tcaw /r /d docdir\*.* 2004-02-02 //Set all dirs&files under 'docdir'
3:sft /tcaw /r /d docdir 2004-02-02 //Set all dirs&files only has name 'docdir'
==========================================
WARNING:SFT has SE_BACKUP_NAME and SE_RESTORE_NAME privileges enabled,so if
you are an Admin of Windows NT system, SFT will overwrite almost any file's time
even if Admin has no access rights!(NOT including file with READ_ONLY attribute
and file are in using) Use it carefully!!!!!
==========================================
History:
v1.3 2004/10/10
Add /D switch , thanks to Marcus :)
Directory time Now can also be set if you are running Windows NT based OS.