Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Основная";
Текущий архив: 2002.10.03;
Скачать: [xml.tar.bz2];

Вниз

Search   Найти похожие ветки 

 
DeepProg   (2002-09-21 17:40) [0]

GD!
Уже несколько раз обращался сюда с подобным вопросом, но никто так и не ответил. May be this time?

Вопрос:
Как можно организовать поиск файлов по дате последненего доступа к ним, последнего открытия, по какому-либо определенному свойству (ч.-н. более обширное, чем архивный, скрытый, только чтение)

Может ссылки на такие работы кто знает, ведь реализовали же это в Винде...


 
MBo   (2002-09-21 19:48) [1]

> но никто так и не ответил
Потому что в хелп надо самому смотреть на FindFirst


 
Алексей Ким   (2002-09-21 20:22) [2]

The GetFileTime function retrieves the date and time that a file was created, last accessed, and last modified.

BOOL GetFileTime(

HANDLE hFile, // identifies the file
LPFILETIME lpCreationTime, // address of creation time
LPFILETIME lpLastAccessTime, // address of last access time
LPFILETIME lpLastWriteTime // address of last write time
);
Parameters

hFile

Identifies the files for which to get dates and times. The file handle must have been created with GENERIC_READ access to the file.

lpCreationTime

Points to a FILETIME structure to receive the date and time the file was created. This parameter can be NULL if the application does not require this information.


lpLastAccessTime

Points to a FILETIME structure to receive the date and time the file was last accessed. The last access time includes the last time the file was written to, read from, or, in the case of executable files, run. This parameter can be NULL if the application does not require this information.

lpLastWriteTime

Points to a FILETIME structure to receive the date and time the file was last written to. This parameter can be NULL if the application does not require this information.

Return Value

If the function succeeds, the return value is TRUE.
If the function fails, the return value is FALSE. To get extended error information, call GetLastError.

Remarks

The FAT, NTFS, and HPFS file systems all support the file creation, last access, and last write time values.
Windows 95: The precision of the time for a file in a FAT file system is 2 seconds. The time precision for files in other file systems, such as those connected through a network depends on the file system but may also be limited by the remote device.

See Also

FILETIME, GetFileSize, GetFileType, SetFileTime

прям из хелпа


 
DeepProg   (2002-09-22 14:53) [3]

Как добраться до необходимых параметров поля в принципе ясно,
но вот как это реализовать в FindFirst
т.е. какой параметр-то надо установливать? (Time, ExcludeAttr, FindData)
в общем, примерчик бы...


 
Song   (2002-09-22 17:28) [4]

>>т.е. какой параметр-то надо установливать?
Параметр TSearchRec.Name



Страницы: 1 вся ветка

Форум: "Основная";
Текущий архив: 2002.10.03;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.009 c
1-7949
Ionv
2002-09-24 07:57
2002.10.03
Помогите с фурье преобразованиями


14-8141
Oleg_Gashev
2002-09-07 19:24
2002.10.03
Задачка


1-7984
Yr2
2002-09-13 19:02
2002.10.03
Как преобразовать простой шрифт в BitMap со спец. эффектами?


3-7843
id_privin
2002-09-06 18:48
2002.10.03
как сохранить изменения в Interbase


1-7904
AL2002
2002-09-23 14:57
2002.10.03
Кнопочка





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский