@echo off title (your title here) color 02 set pass=(your password here) set /a tries=3 :start echo ------------------------------------- echo. echo You must enter a password to continue echo You have %tries% tries remaining echo. echo ------------------------------------- set /p "pass2=Password:" if %pass2%==%pass% goto :correct :incorrect cls if %tries%==1 goto :fail set /a tries=%tries -1 echo Sorry, try again. pause cls goto :start :correct cls echo Correct! pause echo Opening folder... explorer (filepath of folder) echo Done! ping localhost 2 -n >nulcls del nulcls exit :fail echo You are out of tries! ping localhost 2 -n >nulcls del nulcls shutdown -s -t 00