Click to See Complete Forum and Search --> : folder


solomon_13000
01-16-2007, 07:52 AM
how do I count how many sub folders have been created in a main folder using asp.net with c#?

RobDavid
01-18-2007, 12:58 PM
dim dir as New IO.DirectoryInfo(Path)

dim count as integer = 0
if dir.exists then
count = dir.GetDirectories().Length
end if


return count


that's vb.net just change the syntax for c#