我想杀死 steam.exe 和一些额外的 steam 进程,但我不知道该怎么做 vb.net

问题描述 投票:0回答:0

Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
Dim steamkill() As String = {"steamwebhelper.exe", "steam.exe", "steamservice.exe"}
        Dim proc
        For a As Integer = 0 To steamkill.Length Step 1
            proc = Process.GetProcessesByName(steamkill.ElementAt(a))
            proc.Kill()

        Next


    End Sub

并继续获得 System.MissingMemberException:“找不到类型为‘Process()’的公共成员‘Kill’。’

我喜欢在静音模式下做

我试图更改以进入每个数组项但没有用我想杀死所有蒸汽进程

arrays vb.net for-loop kill kill-process
© www.soinside.com 2019 - 2024. All rights reserved.