Quantcast
Channel: Active questions tagged windows - Super User
Viewing all articles
Browse latest Browse all 8949

In batch code, how to make an input choice instead of typing?

$
0
0

Currently, I list all network adapters, and then the user needs to type the name of an adapter to proceed with the rest of the code.

    :: Listing all network adaptersecho/List all network adapters & netsh interface show interface:: Getting the name of the network adapters and validating the user inputecho/ & set /p "_adapterName=Enter the interface name you want to fix: " || =;(     echo You must enter a network adapter name! & exit /b );=

Instead, how would I use that list to so that a user could select an item from it by number?

original

code i want


Viewing all articles
Browse latest Browse all 8949

Trending Articles