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 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.

Windows - Command-line prompt

Create the Batch script to display a user menu.

Copy to Clipboard

Edit the Batch script.

Copy to Clipboard

Create the user menu.

Copy to Clipboard

Request a user input.

Copy to Clipboard

Configure the menu options.

Copy to Clipboard

Here is the script content.

Copy to Clipboard

Execute the Batch script to display the user menu.

Copy to Clipboard

Option 1 will request user input to perform a network connectivity test.

Copy to Clipboard

Option 2 will request user input to display a message.

Copy to Clipboard

Option 3 will exit the Batch script.

Copy to Clipboard

Other options will display the default message.

Copy to Clipboard

Congratulations! You are able to display a user menu using a Batch script.