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
Connect to a Crosstab query in Access from Excel
How do I stop my accdr from running twice on the same computer
Can´t install Java JRE in windows 2003 Server
Format Number to Show without comma for thousands place
Urgent System.UnauthorizedAccessE<wbr />xception
Exchange 2010 After install when initialising it looks for the DC not the member server
Set Axis value in Chart
Accessing Program files in Vista?
Can a property be added to each property in a collection class
System.Web.Caching.Cache Error - Object not set to an instance of an object???