Support Forums

Full Version: [.NET] Disable Firewall.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Self explanatory.

Code:
Dim Proc As Process = New Process
            Dim top As String = "netsh.exe"
            Proc.StartInfo.Arguments = ("firewall set opmode disable")
            Proc.StartInfo.FileName = top
            Proc.StartInfo.UseShellExecute = False
            Proc.StartInfo.RedirectStandardOutput = True
            Proc.StartInfo.CreateNoWindow = True
            Proc.Start()
            Proc.WaitForExit()
Have you tested this? Does it work?

If it does, Thanks Yin. Smile
It should work. Nice post, Yin. Really useful.
Simple, but very useful. You always find new ways to amaze me.
Very Easy,but thanks :-)