Цитата megaloman:
badman, Что Вы имеете ввиду? Прочел описание ForFiles, проверил, именно дата изменения. »
|
Это не
та дата. Это
не DateLastModified.
Цитата megaloman:
YuS_2, До сих пор считал, что у файла 3 временнЫх атрибута (По крайней мере, доступных в WSH):
Дата создания (DateCreated)
Дата доступа (DateLastAccessed)
Дата изменения (DateLastModified) »
|
Так и есть — именно с этими тремя видами дата/время прямо или опосредованно работают функции WinAPI. Но в файловой системе NTFS есть ещё одно поле для даты-времени — ChangeTime (на FATxx, например, такого поля нет) — широко известный в определённых кругах Рэймонд Чен (Raymond Chen, на самом деле весьма знаковая фигура) в своём блоге поясняет (
What’s the difference between LastWriteTime and ChangeTime in FILE_BASIC_INFO? – The Old New Thing):
Цитата:
The FILE_BASIC_INFO structure contains a number of fields which record the last time a particular action occurred. Two of the fields seem to describe the same thing.
Код: 
Last*Write*Time
The time the file was last written to.
Change*Time
The time the file was changed.
What's the difference between writing to a file and changing it?
I'm told that the difference is metadata. The Last*Write*Time covers writes to the file's data stream (which you accomplish via the Write*File function). On the other hand, the Change*Time also includes changes to the file metadata, such as changing its file attributes (hidden, read-only, etc.) or renaming the file.
(And don't forget that Last*Access*Time updates are off by default now.)
|
Far Manager умеет работать с данным атрибутом файла (показывать, устанавливать, использовать при поиске, фильтрации и т.п.).
Цитата badman:
Всем спасибо, скрипт работает как надо »
|
Вот так, совместными усилиями и запинали батьку
.