Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[.NET] Disable Firewall.
#1
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()
Reply
#2
Have you tested this? Does it work?

If it does, Thanks Yin. Smile
[Image: jpke28.jpg]
I actually can't wait for Iron Man 2.
Reply
#3
It should work. Nice post, Yin. Really useful.
Aut viam inveniam aut faciam.

Reply
#4
Simple, but very useful. You always find new ways to amaze me.
Site Owner: http://www.awesomelounge.com

Feel free to join. It's full of greatness.


[Image: s1ckl3r2.png]
Reply
#5
Very Easy,but thanks :-)
[Image: 20r9vh4.jpg]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [TUT]Enable and Disable TaskManger in vb.net [TUT] HB Virus 4 3,180 12-19-2011, 10:10 AM
Last Post: euverve

Forum Jump:


Users browsing this thread: 1 Guest(s)