DVDRW Posted May 30, 2008 Share Posted May 30, 2008 Cant find function for that. What is the simplest way to do this. Link to comment Share on other sites More sharing options...
d4rk Posted May 30, 2008 Share Posted May 30, 2008 $search = FileFindFirstFile("*.*") If $search = -1 Then MsgBox(0, "Error", "No files/directories matched the search pattern") Exit EndIf $files=0 While 1 $file = FileFindNextFile($search) If @error Then ExitLoop $files=$files+1 WEnd MsgBox(64,"","We got total : "& $files & " files") FileClose($search) [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys Link to comment Share on other sites More sharing options...
Developers Jos Posted May 30, 2008 Developers Share Posted May 30, 2008 (edited) Faster alternative: $size = DirGetSize(@WindowsDir,3) If IsArray($size) Then Msgbox(0,"DirGetSize-Info","Size(Bytes):" & $size[0] & @LF _ & "Files:" & $size[1] & @LF & "Dirs:" & $size[2]) EndIf Edited May 30, 2008 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
DVDRW Posted May 30, 2008 Author Share Posted May 30, 2008 (edited) $files = DirGetSize ( "c:\",1) MsgBox(0,"",$files[1]) Thanks for quick reply Edited May 30, 2008 by DVDRW 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