vb.net 结束ppt程序

来源:互联网 发布:企业软件管理系统 编辑:程序博客网 时间:2024/05/22 16:07
Public Class Form1    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click        Dim plist() As Process        Dim ppo As System.Diagnostics.Process        plist = Process.GetProcesses        For Each ppo In plist            If ppo.ProcessName = "POWERPNT" Then                ppo.Kill()            End If        Next    End SubEnd Class