04-06-18, 04:05 AM
السلام عليكم ورحمة الله وبركاته .........
يا أخوان انا عند مشكلة في عملية البحث .
احاول ابحث عن كل ملفات TEXT في C بس يعطيني خطأ
يا أخوان انا عند مشكلة في عملية البحث .
احاول ابحث عن كل ملفات TEXT في C بس يعطيني خطأ
كود :
Public file_path_Array() As String
Public Sub Search_for_files(ByVal type As String)
Try
Directory.GetFiles("C:\", type, SearchOption.AllDirectories)
For Each s In Directory.GetFiles("C:\", type, SearchOption.AllDirectories)
Form1.TextBox2.Text += s + Environment.NewLine
Next
Catch ex As UnauthorizedAccessException
MsgBox(ex.ToString)
Catch ex2 As Exception
MsgBox(ex2.ToString)
End Try
End Sub