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
Internet explorer wont open - After removing rouge malware
I have a batch file I would like to make more Professional.
Need help in creating XML file
(NEWBIE)Visual Studio (Concurrent I/O operations error) (NEWBIE)
Can I copy data from one excel workbook into another without the second workbook visably opening?
When a virtual workstation was last logged on?
Excel table linked into Powerpoint slide
Format the Graphs to export on to the PDF
Not showing Alert() before Response.redirect
Some users get IIS 500 errors when logging onto Sharepoint Team Site