(AGK version: 2.0.10)
Submitted: 2015-01-19 14:48:47
// Project Example: GetFileCount()
// Created: 2015-01-19

Setvirtualresolution(640,480)
ResetTimer()
//Show Current Folder and Files
Print("Current Folder: "+GetFolder())
Render()
fn$=GetFirstFile()

while fn$<>""
	Id=OpenToRead(fn$)
	size=GetFileSize(Id)
	CloseFile(Id)
    Print(Spaces(2)+fn$+Spaces(2)+Str(size)+" Bytes")
    fn$=GetNextFile()
endwhile
Print("Total Number of Files: "+Str(GetFileCount()))
Sync()
Repeat
Until Timer()>20
End 
Help make AGK better by submitting an example for this command!
(All examples are subject to approval)
Login to post an example of your own.