Here's the scenario -
There's a folder that has many executables inside their own folders.
Ex:
J:\Progs\Prog1\Prog1.exe
J:\Progs\Prog2\Prog2.exe
etc.
Is there a way to get windows Firewall to block all inbound and outbound connections from every executable in the J:\Progs\ root folder (even when they themselves are nested further in)? As far as I can tell, you can only add individual .exes manually, and not block an entire directory outright.
Apparently one can do this via a .bat file - the problem with that is it'd have to run again every time more folders were added in there.
What's the best way to go about doing this? I'd prefer not to have to use a third party program if possible - if that's not possible, what suite works best for something like this?
At the moment just using Windows Defender/Firewall with Malwarebytes as an on demand scanner.
Wasn't sure whether to ask this question here, or in Applications, but technically its to do with the Windows 10 firewall, so

I can never be free, because the shackles I wear can't be touched or be seen.
i9-9900k, MSI MPG-Z390 Gaming Pro Carbon, 32GB DDR4 @ 3000, eVGA GTX 1080 DT, Samsung 970 EVO Plus nVME 1TB