Cum sa parolezi un director si sa-l ascunzi

Ti-ai dorit sa ascunzi anumite fisiere in computer? De acum te poti relaxa caci ai mai jos solutia.

Avem urmatorul cod:

cls
@ECHO OFF
set folder==Locker
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST %folder% goto MDLOCKER
:CONFIRM
echo Are you sure u want to Lock the folder(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren %folder% "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%==password goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" %folder%
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md %folder%
echo %folder% created successfully
goto End
:End


1. Copy/Paste intr-un fisier notepad
2. In linia " if NOT %pass%==password goto FAIL " schimbi password cu parola care o doresti la folder
3. Salvezi fisierul cu extensia .bat (ex.: exemplu.bat)
4. Dublu click pe fisierul .bat creat
5. Acum a aparut folderul Loker
6. Pui in folder ce doriti
7. Rulezi din nou aplicatia .bat si dati "y" (ca sa-l blocati)
8. Folderul dispare
9. Pentru a reaparea ruleaza din nou aplicatia si introdu parola
10. Folderul a reaparut cu tot ce e in el

Nota: aceasta metoda este valabila pentru sisteme de operare Windows