windows cmd get input code example Example 1: cmd get keyboard input @echo off set /p id="Enter ID: " Example 2: batch input SET /P variable=[promptString]