FindFirst на расшареном каталоге с большим количеством файлов

From
Dmitry Babayev (2:5022/75)
To
Grigory Tsukanov
Date
2002-08-30T16:43:26Z
Area
SU.WINDOWS.NT.PROG
Hello Grigory.

23 Aug 02 10:10, you wrote to all:

GT>     Случилось страшное. Выяснилось, что не работает FindFirst. error 2
GT> (не файлов с заданной маской). Мне нужно получить файлы с расшаренного
GT> каталога. Проблема в том, что в каталоге более 60000 файлов. Проводник
GT> Windows тоже не работает. Как быть то?

Ты наступил случайно не на это?

Remarks

You cannot use root directories as the lpFileName input string for FindFirstFile, with or without a trailing backslash. To examine files in a root directory, use something like "C:\*" and step through the directory with FindNextFile. To get the attributes of a root directory, use GetFileAttributes. Prepending the string "\\?\" does not allow access to the root directory.

Similarly, on network shares, you can use an lpFileName of the form "\\server\service\*" but you cannot use an lpFileName that points to the share itself, such as "\\server\service".

Dmitry

---
 * Origin:  (2:5022/75)