Skip to content

Instantly share code, notes, and snippets.

@djprmf
Created August 23, 2016 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djprmf/85e345d8dab9ad79f467f64785eae976 to your computer and use it in GitHub Desktop.
Save djprmf/85e345d8dab9ad79f467f64785eae976 to your computer and use it in GitHub Desktop.
Pasta secreta com o bloco de notas - TugaTech
cls
@ECHO OFF
title Pasta Privada
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Privada goto MDLOCKER
:CONFIRM
echo Pretende bloquear a pasta (S/N)
set/p "cho=>"
if %cho%==S goto LOCK
if %cho%==s goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Escolha inválida.
goto CONFIRM
:LOCK
ren Privada "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Pasta Bloqueada
goto End
:UNLOCK
echo Introduza a password para desbloquear a pasta
set/p "pass=>"
if NOT %pass%== A_SUA_PASSWORD goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Privada
echo Pasta desloqueada com sucesso
goto End
:FAIL
echo Password invalida
goto end
:MDLOCKER
md Privada
echo Pasta Privada criada com sucesso
goto End
:End
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment