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
access 2007 - invalid procedure call
Administrator password reset via Terminal Services causing problems
Autonew in Excel
How to transpose a variable length row to two columns
How do I number couples of data in an MS Access 2007 Report?
.NET CE C# program not updating with time zone change
Need to deploy/upgrade an Access application
How can I change the value of a combo box based on value of an unbound text box?
Locate Corrupt Record In An Access Table
Difference between coding in module, sheet, or workbook window