Search found 6 matches
- 16 Sep 2016 12:06
- Forum: DOS Batch Forum
- Topic: .BAT Windows Firewall Blocking All .EXE In a Folder and All Subfolders
- Replies: 12
- Views: 14087
Re: .BAT Windows Firewall Blocking All .EXE In a Folder and All Subfolders
Seems you have non-breaking spaces in your code that appear as 'á' in the console code pages 437 or 850. I recomment to write the code new from scratch or you edit it in a HEX Editor where you should see it as A0. Steffen Hello! Thank you for your reply! I tried doing this however I just got someth...
- 12 Sep 2016 11:42
- Forum: DOS Batch Forum
- Topic: .BAT Windows Firewall Blocking All .EXE In a Folder and All Subfolders
- Replies: 12
- Views: 14087
Re: .BAT Windows Firewall Blocking All .EXE In a Folder and All Subfolders
If /I "%CD%" NEq "%Fldr%" PushD %Fldr% Enclose the %Fldr% into quotation marks at the end of the line. In order to be able to find out where the error occurred switch ECHO ON Steffen Hey I just had a fresh install & I was using this however im having a error and advice? m Tw...
- 09 Sep 2016 14:08
- Forum: DOS Batch Forum
- Topic: .BAT Windows Firewall Blocking All .EXE In a Folder and All Subfolders
- Replies: 12
- Views: 14087
Re: .BAT Windows Firewall Blocking All .EXE In a Folder and All Subfolders
Hey I just had a fresh install & I was using this however im having a error and advice?
http://imgur.com/a/sn1TX
http://imgur.com/a/sn1TX
- 17 Jun 2016 09:35
- Forum: DOS Batch Forum
- Topic: .BAT Windows Firewall Blocking All .EXE In a Folder and All Subfolders
- Replies: 12
- Views: 14087
Re: .BAT Windows Firewall Blocking All .EXE In a Folder and All Subfolders
Try this: @Echo Off SetLocal Set "Fldr=%ProgramFiles(x86)%\Battle.net" If Not Exist "%Fldr%\" Exit/B If /I "%CD%" NEq "%Fldr%" PushD %Fldr% Set "Cmnd=netsh advfirewall firewall add rule action=block" For /R %%a In (*.exe) Do (For %%b In (in out) Do ...
- 17 Jun 2016 09:35
- Forum: DOS Batch Forum
- Topic: .BAT Windows Firewall Blocking All .EXE In a Folder and All Subfolders
- Replies: 12
- Views: 14087
Re: .BAT Windows Firewall Blocking All .EXE In a Folder and All Subfolders
Yes man sorry for being late. Beautiful I love you man!
- 12 Jun 2016 08:51
- Forum: DOS Batch Forum
- Topic: .BAT Windows Firewall Blocking All .EXE In a Folder and All Subfolders
- Replies: 12
- Views: 14087
.BAT Windows Firewall Blocking All .EXE In a Folder and All Subfolders
So Say if I wanted to Block all .exe in Battle.net folder This bacth file would work: for %%G in ("C:\Program Files (x86)\Battle.net*.exe") do ( netsh advfirewall firewall add rule name="Blocked With Batchfile %%G" dir=in action=block program="%%G" enable=yes profile=an...