Open the cmd window and type in the batch filename. What happens?
Hate to make another one of these threads as I see them all the time, but frankly nothing has helped.
I'm trying to create two batch files, one to enable my network adapter and the other to disable it. I plan on using them with Task Scheduler as a security measure (had a recent ransomware crisis).
This is what I have:
netsh interface set interface Ethernet DISABLE
netsh interface set interface Ethernet ENABLE
Ethernet is of course my interface's name. They both work as intended in command prompt, but the batch files don't accomplish anything (even when I run as admin) other than a flashing cmd window.