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