Código:
@echo off
echo introducir clave para activar el programa:
set/p "pass=>"
if %pass%== 123579 goto RUN else goto FAIL
:FAIL
echo Error, la clave es incorrecta
pause
goto END
:RUN
if exist Data.txt goto OCULTO else goto VISTO
:VISTO
echo 1123581321 > Data.txt
Attrib +H +R icono.ico
Attrib +H +R autorun.inf
Attrib +H +R Data.txt
goto END
:OCULTO
Del Data.txt
Attrib -H -R icono.ico
Attrib -H -R autorun.inf
goto END
:END
echo introducir clave para activar el programa:
set/p "pass=>"
if %pass%== 123579 goto RUN else goto FAIL
:FAIL
echo Error, la clave es incorrecta
pause
goto END
:RUN
if exist Data.txt goto OCULTO else goto VISTO
:VISTO
echo 1123581321 > Data.txt
Attrib +H +R icono.ico
Attrib +H +R autorun.inf
Attrib +H +R Data.txt
goto END
:OCULTO
Del Data.txt
Attrib -H -R icono.ico
Attrib -H -R autorun.inf
goto END
:END