Rahul Rohela Posted May 29, 2006 Posted May 29, 2006 HI, I am looking for script that give count of filders in given folder. Ouput is required in numbers equals to number of folders present in given path. Thx Rahul
Lazycat Posted May 29, 2006 Posted May 29, 2006 Autoit Help -> Function Reference -> DirGetSize (in extended mode). Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s])
Rick Posted May 29, 2006 Posted May 29, 2006 (edited) Another way.............. change it as you wish.. $Path = @DeskTopdir $search = FileFindFirstFile( $Path & "\*.*") $Total=0 While 1 $file = FileFindNextFile($search) If @error Then ExitLoop if Stringinstr(FileGetAttrib($Path & "\" & $file),"D") then MsgBox(0,"",$file) $Total=$Total + 1 endif WEnd FileClose($search) MsgBox(0,"","Total folders in " & $Path & " : " & $Total) Edited May 29, 2006 by Rick arthalita01 1 Who needs puzzles when we have AutoIt!!
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