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
Pause sub, open form, continue sub to update
Regex.Replace only match entire word instead of part of a word
Code retriving duplicated numbers.
Rules in error: Cannot remove messages from the folder.
Windows Media Player
Orphan threads in .net, are they stopped by Garbage Collector?
Using batch file to start programs with switches
How do I repair WinRM?
SBS2003 installation problems.
How to remove header and footer when printing from IE for multiple computers.