0

我正在开发一个 vb.net 应用程序。

我已经制作了自己的文件并放在 system32 文件夹中。

现在,我正在尝试使用以下代码读取我放入文件夹中的相同文件...

         Try
            Dim FileData As String = ""
            Dim line As String = "'"
            Dim readFile As System.IO.TextReader = New StreamReader("C:\Windows\System32\winApps.dll")
            While True
            .
            .
            .
        Catch ex As Exception
            Me.Close()
        End Try

但是每当我运行上面的代码时,它都会给出一个错误 - 在 readFile 语句中......

找不到文件“C:\Windows\System32\winApps.dll”。

但文件确实存在在那里......但如果我更改文件位置代码运行没有错误。

在此处输入图像描述

我有管理权限。

我错过了什么?

4

0 回答 0