voorock Posted October 16, 2006 Share Posted October 16, 2006 Hi all, I want to get a directory name and all sub directories under it. example : c:\users contain 3 subdirectories, and i want a txt file with the subdirectories names and sizes. Sorry for my english. Link to comment Share on other sites More sharing options...
this-is-me Posted October 16, 2006 Share Posted October 16, 2006 $search = FileFindFirstFile("C:\users\*") ; Check if the search was successful If $search = -1 Then MsgBox(0, "Error", "No files/directories matched the search pattern") Exit EndIf While 1 $file = FileFindNextFile($search) If @error Then ExitLoop If StringInStr(FileGetAttrib($file), "D") MsgBox(4096, "Directory:", $file) Endif WEnd ; Close the search handle FileClose($search) Who else would I be? Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted October 16, 2006 Share Posted October 16, 2006 and or use _pathsplit 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