|
FindNextFile |
Top Previous Next |
|
FindNextFile
Syntax FindNextFile([out] FileNameVar, [out] IsDoneFlagVar);
Description To retrieve the next file in a specific folder after previous FindFirstFile/FindNextFile call.
Parameters FileNameVar The name of the variable to receive the return file name. IsDoneFlagVar The name of the variable to receive the completion status. 1 = File searching is completed 0 = File searching is not completed. You can still call FindNextFile later on.
Return 1 = success 0 = failed -1 = FSCommands cannot be found
Example
FSCommand("FindNextFile", "FileNameVar,IsDoneFlagVar");
This will scan folder C:\Data for the next file after the previous FindFirstFile/FindNextFile call. The next file found will be returned in _root.FileNameVar variable upon completion of this FSCommand call. _root.IsDoneFlagVar will also be set to 1 if there are no more files to search and 0 otherwise. |