I want to tell a user to input just how many minutes he wants before shutting down the computer and I don't know how can I avoid any letter in the user input. I just want to allow a number otherwise go to finish
@ECHO OFF
pushd %systemroot%
echo *{Enter the number of minutes required before Turn off the computer then press (enter)}
set/p "x="
if %x% EQU %x% set/a z= 60*%x%
echo %z%
shutdown -s -t %z%
echo finish