You can also make it so that the batch file literally toggles the NIC (enable it if it is currently disabled, or disable it if it is currently enabled), but that will be a little more involved and probably not necessary in general. Alternately, you could put the batch file somewhere in your PATH, then you can simply toggle the NIC via the Start menu or Run dialog e.g.lnk file or easier, just use a macro/hotkey program to create a task to run the batch files with whatever hotkey you like.) But, if you really need one without Alt, you can manually hack the. (There’s a reason Explorer tries to prevent simple shortcuts of the form Ctrl Key, Alt Key, and Shift Key because those are normally used in programs for everyday tasks, so using them as shell hotkeys would cause no end of trouble.Set a hotkey in the Properties dialog for each shortcut- Ctrl Alt Shift Num and Ctrl Alt Shift Num- seem like good, logical ones. :: Leave the "SUBSYS" and later parts of the string off, otherwise it may not work.Ĭreate two shortcuts to the batch file (e.g., EnableNIC.lnk and DisableNIC.lnk), in one specifying the Target field as C:\…\ToggleNIC.bat and for the other, C:\…\ToggleNIC.bat - (of course replace the … with the path to the batch file) :: When you locate your device ID, enter only up to the "DEV" that should be enough to uniquely identify the device. :: You can find it with the command "devcon find PCI*", looking for the name of your NIC. :: Replace the device ID ("VEN_1234
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |