التنبيهات التالية ظهرت :
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 864 - File: showthread.php PHP 7.4.33 (Linux)
File Line Function
/showthread.php 864 errorHandler->error



تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
[VB.NET] مشكلة في البحث عن الملفات
#1
السلام عليكم ورحمة الله  وبركاته .........
يا أخوان انا عند مشكلة في عملية البحث .
احاول ابحث عن كل ملفات 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
الرد }}}
تم الشكر بواسطة:


الردود في هذا الموضوع
مشكلة في البحث عن الملفات - بواسطة ThreeDaysGrace - 04-06-18, 04:05 AM


التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم