Microsoft
Software
Hardware
Network
Question : Count files in folder
I have a web site and I need some code for the aspx.vb page that counts the number of files in the "~/Images/" folder.
Answer : Count files in folder
Try...
Dim i As Integer = Directory.GetFiles(Server.
MapPath("~
/images/")
).Length
myLabel.Text = "There are " & i.ToString & " files in the directory"
Random Solutions
One Chart Per Surgeon in Report Builder 2.0?
Excel Exception when trying to display page
Invalid length for a Base-64 char array
mail rejected because your IP is in DUL
Sharepoint Moss Team Site vs Publishing Site
Draw a scroll bar into non-client area
How to calculate the sum of a bound column in a GridView control for manipulation in VB Code-Behind
How to populate unbound controls on a continuous form in Access 2007
Create directory with current date
DIR command to list directory contents to text file