help for creating batch file
Posted: 12 Mar 2019 23:59
Hello everyone
what I need to do is switching my network adaptors on/off with a batch file.
Right now, I have two batch files, one of them to disable adaptor 1 and enable adaptor 2.
the second batch file is to disable adaptor 2 and enable adaptor 1.
is there any way I can merge them into a smarter file, maybe with an "IF" command or anything like that, so that it checks to see which adaptor is enabled and disable it, and vice-versa?
Thanks in advance
what I need to do is switching my network adaptors on/off with a batch file.
Right now, I have two batch files, one of them to disable adaptor 1 and enable adaptor 2.
the second batch file is to disable adaptor 2 and enable adaptor 1.
is there any way I can merge them into a smarter file, maybe with an "IF" command or anything like that, so that it checks to see which adaptor is enabled and disable it, and vice-versa?
Thanks in advance