You can use this command to reset the directory listing. The syntax of the command is
RESET DIRECTORY dn
RESET DIRECTORY #dn
where dn is the directory number. After executing this command the next call to NextFile will return the first file in the list and listing starts again.