I am trying to write a simple batch file using “INPUT”. The challenge I am encountering is the MENU is flickering most likely due to lines of code in the batch file.
Example Code:
@ECHO OFF
:MENU
CLS
ECHO 1. Display Time
ECHO 2. Dispaly Date
ECHO 3. Display current Directory
ECHO Q to Quit
set INPUT=
set P INPUT=Please make a selection
if “%input%”==”” goto MENU
if “%input%”==”1” goto TIME
if “%input%”==”2” goto DATE
if “%input%”==”3” goto DIR
if /I “%input%”==”Q” goto QUIT
GoTo MENU
:TIME
TIME
goto MENU
:DATE
DATE
goto MENU
:DIR
DIR
goto MENU
:QUIT
echo.
echo Goodbye
echo.
echo.
pause
exit
Thanks for your assistance,
John