Hello !
I just registered here and first i want say hello to all!
So, im doing file scanner programm ( I only need code to show all folders and subfolders including all files on D driver ) and i got stucked on very first place. I'm using visual studio 2010, vb.net and my problem is that when i press button nothing happens, not even error occurs!
here is my code
I just registered here and first i want say hello to all!
So, im doing file scanner programm ( I only need code to show all folders and subfolders including all files on D driver ) and i got stucked on very first place. I'm using visual studio 2010, vb.net and my problem is that when i press button nothing happens, not even error occurs!
here is my code
VB.NET:
Public Class Form1
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
Try
Dim Joku = System.IO.Directory.GetDirectories("D:\", System.IO.SearchOption.AllDirectories)
For Each Files In Joku
Dim Joku2 = System.IO.Directory.GetFiles(Files, "*.*", System.IO.SearchOption.AllDirectories)
For Each Files2 In Joku2
ListBox1.Items.Add(Files2)
Next
Next
Catch ex As Exception
End Try
End Sub
End Class
Last edited: