World of Metin

Cum sa pui parola la un folder

Go down

Cum sa pui parola la un folder

Post by Ghioala Andrada on Sat Sep 22, 2012 2:07 pm




Pasul 1 . Deschidem notepad si scriem urmatorul cod ...

cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure u want to Lock the folder(Y/N)
set/p "ch"
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 Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo stuff by harish
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%==password goto FAIL
attrib -h -s �ontrol Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}�br />ren �ontrol Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}�Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End


Pasul 2 . Unde avem scris " password " , modificam cu parola pe care o vrem .
Atentie : Trebuie modificat doar " password " . Daca stergeti si " goto FAIL " nu va mai avea nici un efect.

Pasul 3 . Salvam fisierul , cu extensia .bat . Deci "nume.bat"

Pasul 4 . Deschidem fisierul .bat si v-om observa ca se va creea un folder pe nume "Locker"

Pasul 5 . Adaugam fisierele ce vrem sa le ascundem si inchidem .

Pasul 6 . Deschideti din nou fisierul .bat

Pasul 7 . Veti fi intrebat daca vreti sa blocati folderul . Tastati "Y" apoi Enter .
Veti observa ca folderul a disparut . Pentru a reaparea deschideti din nou fisierul .bat , unde veti fi intrebat de parola . Scrieti parola si folderul va reaparea .
Sper ca am fost de ajutor .









avatar
Ghioala Andrada
Global Mod
Global Mod

Posts : 730
Reputation : 5
Join date : 19/01/2012
Age : 19
Location : Hunedoara

View user profile

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum