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
Automatically decline meeting request for a specific meeting on the calendar
Add new group option in Outlook 2007 under tasks
Need to connect a DataGridView with a database
bodytype.
Microsoft Access ADP file and Office Service Pack 3 problem
OWA attachment (docx, xlsx) wants to be saved as zip file. Why?
TMG - UDP NAT
Visual Basic Code - Excel - Merge multiple worksheets in an excel workbook into single worksheet
Applying a filter to Main form and SubForm based on InputBox
MOSS 2007 using EXPRESS version of MS SQL instead of MS SQL 2005 STANDARD