Created
August 23, 2016 19:15
-
-
Save djprmf/85e345d8dab9ad79f467f64785eae976 to your computer and use it in GitHub Desktop.
Pasta secreta com o bloco de notas - TugaTech
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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