Create a multiple choice menu in a batch-file

By Windows Guides

Create a multiple choice menu in a batch-file

Batch-Files are small yet powerful tools that you can create to easy your daily chores. Back in the day when Windows was glass covered holes for letting air and light into your house, Batch scripting was an essential and every day tasks. Today, most people don’t even know it exists.

This time we’ll explore how to create a multiple choice menu that can trigger files, website and functions.

Create a multiple choice menu in a batch-file

There are endless possibilities to this, so what I’m about to show you will only cover a few bases that will point you in the direction you might want to go.

First up a few definitions

Goto: The Goto Statement allows us to jump to a specific part of the script, like back to Start or the end.

[Place]: When we use the Goto Statement we need a target. The Target or Place is defined by a Colon and a name (:HOME).

Variables (or Var): Variables are small post-it notes that stores information (user input) for later use. In Batch Scripting we declare a variable with the SET command.

ECHO: This Command is used to hide or show feedback to the user. Turning it OFF will make sure everything we do is invisible to the user.

CLS: Clear Screen, empties the CMD-window

Pause: Inserting the PAUSE command will pause the script from running until the user press a key.

START or CALL: Commands used to trigger an event (a batch file, website etc)

Exit: This command ends the script from running

Article continued here

This excerpt appears with the permission of Windows Guides.

 3,583 total views,  3 views today

(Visited 1 times, 1 visits today)

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.