Visual Studio 2008 (vb.net) 我制作了简单的 anivirus,但是当我通过这段代码进行全面扫描时:
FolderBrowserDialog1.SelectedPath = ("C:\")
'first scan:************************************
Try
For Each strDir As String In
System.IO.Directory.GetDirectories(FolderBrowserDialog1.SelectedPath)
For Each strFile As String In System.IO.Directory.GetFiles(strDir)
ListBox1.Items.Add(strFile)
Next
Next
'Start the timer:
Catch ex As Exception
End Try
Timer1.Start()`
只需扫描前 6 个文件...我认为问题来自 Windows 文件夹权限(Windows - 程序文件...等)那么如何解决呢?