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
Can't resolve how a QuickStart defines a ICollection var
please provide vb script to move 30days old files to new shared location along with subfolders
Damerau–Levenshtein distance
Excel 2007 - Macro Digital Certificate Issue
How to subtract hours from date
Site Configured for use with ASP.NET 1.1.4322.573
Convert XML String to Dataset
REgular Expressions in MS Access
String extract in a query field
How do I edit a legend in Access 2003?