re #BatBadBut can't you also set PATHEXT to just .exe in your affected process? so it will only search exes? idk windows well enough to say for sure