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
Sever Cert always invalid
Can you recover a lost Administrator password?
Mail merge between Outlook 2007 and Word 2007 hangs during processing
error on executing an On Enter event
how to add two Dataset...
Exchange 2010 and SSL Certificate
Trying to get autodiscover service to work from outside the network
How can "duplicate key" errors be handled easily?
Using VBA to transfer CSV in AC07
I need to increase the size of an SBS 2003 system partition