There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.
@ECHO OFF
rem Prompts for a name, then looks to see if it's listed in a log file
rem if not, adds it, otherwise, says "Hello!"
rem Prompt user
set /P fname=Your Name:
rem Check for entry in log file
find "%fname%" < log.txt > tmp.txt
set INLOG=
for /f "tokens=1 delims= " %%a in ('type tmp.txt') do call :processfind %%~a
if %INLOG%a==a goto NOTFND
echo Welcome %fname%!
pause
goto exit
:processfind
set INLOG=%~1
goto EOF
:NOTFND
echo Sorry, %fname% not in the log
rem Add it to log like so:
echo %fName% --- %time% --- %date% >> log.txt
:exit
set fname=
rem cls
:EOF