3 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Oneryavuz

did someone know Ms-Dos's dir command i need to take all contets of any folder for using my praggram how can i do that is any one knows? thx for replys

Member Avatar for Oneryavuz
0
187
Member Avatar for horserider

[code] ListBox2.Items.Clear() Dim myCoolFolder As String = "F:\" Try For Each myCoolFile As String In My.Computer.FileSystem.GetDirectories _ (myCoolFolder, FileIO.SearchOption.SearchAllSubDirectories, "*.*") ListBox2.Items.Add(myCoolFile) Next Catch ex As UnauthorizedAccessException MsgBox(ex.Message) End Try MsgBox("Total Files: " & CInt(ListBox2.Items.Count).ToString("#,###,###")) [/code] This code is for listing all folders including subfolders. but when i run this code …

Member Avatar for chris007
0
1K
Member Avatar for horserider

The End.