@echo off

set /p x=Password Please:

if %x%==buycode goto pass REM — give some password

if not %x%==buycode goto Wrong

:pass

cd..

cd..

cd..

cd C:\ REM — save your file in C:\ 

start yourfile.txt REM — the name of your file, document ect.

:Wrong

echo Wrong Password, please try it again. REM — message wrong password

pause