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
WinRM Fails To Start on Windows Server NOT R2
Cached domain login while not connected to domain. Is there a Timeout?
Problems with external emails bouncing back
VB .Net - automation script to click export report icon from crystal report viewer.
Host Process for Windows Services Stopped Working and was Closed
Trapping 2237
Adding controls to Panel
Workaround for 20 field limit for listboxes
Split with character \
SetFocus after validate textbox, not working