Jump to content
Aripipevant

Foldere Blocate folosind Notepad

Recommended Posts

V-a?i întrebat vreodat? dac? se poate s? blocam un Folder folosind Notepad?

Ei bine, da, este posibil s? fie blocat un folder f?r? niciun software suplimentar. Aceast? metod? func?ioneaz? bine în XP / Vista.

V? rug?m s? nu utiliza?i aceast? metod? dac? nu sunte?i sigur de ceea ce faci, eu nu sunt responsabil pentru nici-o dauna cauzat?, de?i nu ve-?i avea probmele dac? urma?i pa?ii mei în mod corect.

Acum s? pornim..

Deschidem Notepad din Start -> All Programs -> Accessories -> Notepad

Pasul 1. Copy ?i Paste la codul de jos în Notepad ?i salva?i-l ca FolderLock.bat

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 "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 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 Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%==type your password here goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control 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: Acum, dublu click, pe noul fisier batch file numit FolderLock si vom face un nou folder numit Locker în aceea?i loca?ie.

Acum punem orice fi?ier în folderul "Locker", din nou dublu clic pe fi?ier-ul batch pentru al fixa, aceasta va da un prompt, ap?sa?i Y ?i apoi Enter: "File get locked"

Acum acest fi?ier numit "FolderLock.bat" îl punem într-un loc diferit ca Pen Drive USB, astfel s? nu mai pute?i accesa folderele pe care le-a?i blocat.

Pentru a debloca folder-ul, face?i dublu click pe fi?ier-ul batch, din nou Y ?i ap?sa?i Enter.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...