(AGK version: 2.0.10)
Submitted: 2015-01-19 14:07:08
// Project Example: GetFolderCount()
// Created: 2015-01-19

Setvirtualresolution(640,480)
ResetTimer()
//Show Current Folder and the number of sub folders
count=0
MakeFolder("AGK Test Folder")
//Use GetFolder() instead of GetCurrentDir()
Print("Current Folder: "+GetFolder())

Print("Total Number of Sub-Folders: "+Str(GetFolderCount()))

Render()
fn$=GetFirstFolder()
while fn$<>""
    Print(Spaces(2)+fn$)
    Inc count
    fn$=GetNextFolder()
endwhile
Sync()

Repeat
Until Timer()>15
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.