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
Transaction log shipping from SQL 2000 to 2005 - Issue with Database upgrade required
replaced sbs 2003 server, netlogon 5513 errors
Save unbound combobox column value in Access 2007
"Pop Chart" style position changes - how to calculate in Excel
Printout default value of unbound textbox
How do I supress the add new record icon at the bottom of subdata sheets?
Calendar with current date and month
VB.NET: ListView FindItemWithText returns exception
Disable all controls on Subform
CERTIFICATE TEMPLATE NOT VISIBLE