Showing posts with label 【VISUAL VB.NET】Firewall Enable or Disable. Show all posts
Showing posts with label 【VISUAL VB.NET】Firewall Enable or Disable. Show all posts

Monday, 12 April 2021

【VISUAL VB.NET】Firewall Enable or Disable

 Public Class Form1

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim firewall As New Process() firewall.StartInfo.FileName = "cmd.exe" firewall.StartInfo.WorkingDirectory = "\windows\system32\" firewall.StartInfo.Arguments = "/c netsh firewall set opmode mode=enable" firewall.Start() End Sub Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click Dim firewall As New Process() firewall.StartInfo.FileName = "cmd.exe" firewall.StartInfo.WorkingDirectory = "\windows\system32\" firewall.StartInfo.Arguments = "/c netsh firewall set opmode mode=disable" firewall.Start() End Sub End Class

BREAKING: North Carolina automotive group acquires 7 Upstate dealerships

Breaking news from GSA Business Report Click here to view this message in a browser window. ...