Jump to content

Recommended Posts

Posted (edited)

@water I am trying to block my windows application for 1 second, But not working
My Code is

RunWait(@ComSpec & ' /c ' & 'netsh advfirewall firewall add rule name="My Application" dir=in action=Block program="C:\MyApp\MyApp.exe" enable=yes')
Sleep(1000)
RunWait(@ComSpec & ' /c ' & 'netsh advfirewall firewall add rule name="My Application" dir=in action=allow program="C:\MyApp\MyApp.exe" enable=yes')

 

Edited by Nareshm

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...