alfa Posted June 1, 2011 Share Posted June 1, 2011 Hello This is the only function i could find in the help file to get a file count of a directory. But i dont want the subdirs included in file count. How can i exclude the subdirs from count ? $sinsi = DirGetSize("c:\Documents and Settings\aozben\Desktop\Cap Rep\",1) _ArrayDisplay($sinsi) Link to comment Share on other sites More sharing options...
hannes08 Posted June 1, 2011 Share Posted June 1, 2011 Hi alfa, you can use _FileListToArray() to count files. The resulting array has the number of files in the [0] array element. Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler] Link to comment Share on other sites More sharing options...
alfa Posted June 1, 2011 Author Share Posted June 1, 2011 Thank you very much Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now