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
Bat file keeps repeating at command line
why is edgetransport.exe running...It is not intalled!
Working with vjslib.dll
ISAM error importing SQL table into Access 2003
MS Access Report Hide\Display a textbox or label
How to Setup Auto Delete options for the Sent Folder in Exchange 2007
Comparing text documents (originally HTML docs, but saved to text files)
Run Chkdsk from bootable flash drive
C#: Embedded files
Remove leading zeros