- Joined
- May 22, 2012
- Messages
- 4,570
Works ok at my endJust try this but it won't work
= You made a typo or didn't run as admin... could also mean your system has non-default Windows build, like a beta test copy but I assume wx pro or home.error message "no rule corresponding to specified criteria"
Last edited by a moderator:
- Thread Author
-
- #14
If somebody can help me to create an exe file.
Cause my bat won't work and if I compile my .bat in .exe it wont work too.
Just need an exe who launch
netsh advfirewall firewall set rule group="Recherche du réseau" new enable=no
Thanks
David
Cause my bat won't work and if I compile my .bat in .exe it wont work too.
Just need an exe who launch
netsh advfirewall firewall set rule group="Recherche du réseau" new enable=no
Thanks
David
- Thread Author
-
- #15
Ok I found ! need to replace é by , in the bat !!
When I'm in cmd I need to use
netsh advfirewall firewall set rule group="Recherche du réseau" new enable=no
but for bat file need to use
netsh advfirewall firewall set rule group="Recherche du r,seau" new enable=no
When I'm in cmd I need to use
netsh advfirewall firewall set rule group="Recherche du réseau" new enable=no
but for bat file need to use
netsh advfirewall firewall set rule group="Recherche du r,seau" new enable=no
- Joined
- Aug 12, 2011
- Messages
- 161
Why?
A batch file won't work but a exe (run as admin) should work...
netsh advfirewall firewall set rule group="network discovery" new enable=no
Hmm? Why would you think a batch file wouldn't work? All he needs to do is right click on the *.bat file and choose to Run as Administrator. This allows the batch script to run within an elevated command prompt which is no different than typing the command into an Administrator command prompt.
Similar threads
- Article
- Replies
- 0
- Views
- 31
- Replies
- 0
- Views
- 19
- Article
- Replies
- 0
- Views
- 595
- Article
- Replies
- 0
- Views
- 43
- Replies
- 0
- Views
- 50