Süper Üye
Merhabalar,
Şimdi VB.NET ile System32'deki dosyaların bilgisayar yolunu almayı göstereceğim.
İlk önce şu kodu ekleyelim :
Sonra ise hangi button vb. şeylere bunu girin :
Listbox yerine istediğinizi yapabilirsiniz...
Şimdi VB.NET ile System32'deki dosyaların bilgisayar yolunu almayı göstereceğim.
İlk önce şu kodu ekleyelim :
Kod:
Sub scanSubfolders(ByVal FolderLocation As String, ByVal lstbox As ListBox)
For Each s In My.Computer.FileSystem.GetFiles(FolderLocation)
Try
lstbox.Items.Add(s)
Catch ex As Exception
End Try
Next
For Each s In My.Computer.FileSystem.GetDirectories(FolderLocation)
Try
scanSubfolders(s, ListBox1)
Catch ex As Exception
End Try
Next
End Sub
Sonra ise hangi button vb. şeylere bunu girin :
Kod:
scanSubfolders(Environment.SystemDirectory, Me.ListBox1)
Listbox yerine istediğinizi yapabilirsiniz...