|
|
|
|
|
- Finding out the number of hidden directories
Finding out the number of hidden directories The following code is used to return the number of hidden directories found in a directory selected by the user. The directory is selected by fSelectDir.
NbDirectoryLS is int
NbDirectory is int = 0
SearchCriterion is string
SearchCriterion = fSelectDir("", "Select a directory", ...
"Searching for hidden directories")
NbDirectoryLS = fListDirectory("C:\MyDocuments", "DirectoryAttribute", ...
&NbDirectoryLS)
Info("There are " + NbDirectoryLS + " hidden directories on " + ...
NbDirectory + " listed directories")
PROCEDURE DirectoryAttribute(Directory, Name, Change, NbDirectory)
NbDirectoryLS is int
IF Position(fAttribute(Directory + Name), "H") <> 0 THEN
Transfer(&NbDirectoryLS, NbDirectory, 4)
NbDirectoryLS ++
Transfer(NbDirectory, &NbDirectoryLS, 4)
ListAdd(LIST_FileList, Directory + Name)
END
RETURN True
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|