A simple command-line tool that allows you to easily toggle (enable/disable) a network interface on Windows. Pull requests are welcome!
MIT License
List interfaces:
toggle-nic --list
Disable interface #11:
toggle-nic 11 --disable
Enable interface #11:
toggle-nic 11 --enable
Launch Visual Studio and open the repository, the IDE will automatically detect the CMake project.
Build the project.
Tools Command Prompt for VS
shortcuts under the Visual Studio folder in the Start menu..bat
files that can be found in VC/Auxiliary/Build
, inside the Visual Studio installation directory.call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
The path differs if you have a different Visual Studio version (e.g. Professional) or if you changed it during the installation.
mkdir build && cd build
NMake Makefiles
generator (otherwise it generates a Visual Studio solution):cmake -G "NMake Makefiles" ..
nmake
Open either MSYS2 MinGW 32-bit
or MSYS2 MinGW 64-bit
and go inside the repository.
Create a working directory for CMake and enter it:
mkdir build && cd build
cmake -G "MSYS Makefiles" ..
mingw32-make