Table of Contents

About

The user interaction is done through:

  • the set command that will prompt a message and set a variable with the value entered by the user.
  • the choice command (List choice)

Syntax

Set

SET /P <var>=[<prompt message>]

Example

Set

SET /P theName=What is your Name ? : 
What is your Name ? : Nico

echo Hello %theName%
Hello Nico