Would you like to learn how to create a user menu using the command line? In this tutorial, we are going to show you how to use Batch scripts to create a text menu on a computer running Windows.
• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 2022
• Windows 10
• Windows 11
Equipment list
Here you can find the list of equipment used to create this tutorial.
This link will also show the software list used to create this tutorial.
Windows Related Tutorial:
On this page, we offer quick access to a list of tutorials related to Windows.
Tutorial Batch Script – Creating a user menu
Start a command-line prompt.
Create the Batch script to display a user menu.
Edit the Batch script.
Create the user menu.
Request a user input.
Configure the menu options.
Here is the script content.
Execute the Batch script to display the user menu.
Option 1 will request user input to perform a network connectivity test.
Option 2 will request user input to display a message.
Option 3 will exit the Batch script.
Other options will display the default message.
Congratulations! You are able to display a user menu using a Batch script.