Jump to content
GoodKat

Restrictionare acces folder

Recommended Posts

Un trick vechi, dar folositor, daca vreti sa restrictionati accesul pe un folder fara nici-un soft.

Ok, sa zicem ca vrem sa restrictionam accesul la folderul "games" pe partitia D:

cu calea "D:\Games", pe aceasi partitie creeam un document text si punem asta in el:


ren games games.{21EC2020-3AEA-1069-A2DD-08002B30309D}

salvam acel document ca "loc.bat"

Mai facem un document text in care punem linia urmatoare:


ren games.{21EC2020-3AEA-1069-A2DD-08002B30309D} games

salvam acel document ca "key.bat"

Acum o sa vezi doua "programele" : loc.bat si key.bat. Daca dam dublu click pe loc.bat folderul se va schimba in "Control panel" si nu vei putea sa vezi ce contine, daca accesam key.bat, totul revine la normal.

Bafta !

Link to comment
Share on other sites

Acum o sa vezi doua "programele" : loc.bat si key.bat. Daca dam dublu click pe loc.bat folderul se va schimba in "Control panel" si nu vei putea sa vezi ce contine

Nu, ai gresit codul :P. In loc.bat trebuie sa pui:


ren games games.{21EC2020-3AEA-1069-A2DD-08002B30309D}

Bafta :P!

Link to comment
Share on other sites

O mica alternativa la acest post.


@echo off
@title Blocheaza/Deblocheaza foldere by Renegade
@cls
@:start
@cls
@echo =============================================
@echo = Blocheaza/Deblocheaza foldere by Renegade =
@echo =============================================
@echo.
@date /t
@time /t
@echo.
@echo 1. Cripteaza
@echo 2. Decripteaza
@echo x. Iesire
@echo.
@echo NOTE:
@echo Fisierul ce trebuie criptat/decriptat sa fie langa acest executabil !!!
@echo Utilizati "" pentru folderele ce contin spatiu in nume. Ex: "New Folder"
@echo.
@set choice=
@set /p choice=Introducetzi numarul optziunii dorite.
@if '%choice%' == '1' goto Criptare
@if '%choice%' == '2' goto Decriptare
@if '%choice%' == 'x' goto Iesire
@if '%choice%' == '' goto start
@echo.

@goto start
@:Criptare
@cls
@set folder=
@set /p folder=Introduceti numele folderului
@ren %folder% %folder%.{21EC2020-3AEA-1069-A2DD-08002B30309D}
@cls
@echo.
@echo ##################################################
@echo # Va multumesc ca ati folosit acest utilitar #
@echo ##################################################
@echo Apasati orice tasta pentru revenirea in meniu.
@pause >nul
@cls
@goto start

@goto start
@:Decriptare
@cls
@set folder=
@set /p folder=Introduceti numele folderului
@ren %folder%.{21EC2020-3AEA-1069-A2DD-08002B30309D} %folder%
@cls
@echo.
@echo ##################################################
@echo # Va multumesc ca ati folosit acest utilitar #
@echo ##################################################
@echo Apasati orice tasta pentru revenirea in meniu.
@pause >nul
@cls
@goto start

@goto end
@
@cls
@goto exit
@:Iesire
@cls

Salvati intr-un batch file si faceti mai simplu lucrul.

Link to comment
Share on other sites

Am reusit si yo da` am o mica problema :D

Daca am un folder BUG(spatiu)Mafia,copiez alea iar in loc de "games" pun numele folderului meu si va fii:

ren BUG Mafia.{21EC2020-3AEA-1069-A2DD-08002B30309D} BUG Mafia

apoi daca deschid fisiseru` loc.bat si intru in folder nu-mi blocheaza accesu` de ce??

Link to comment
Share on other sites

Multumesc :) am reusit

Poate va intereseaoza o alta metoda :D

1.Deschideti discul local dorit(C:/D: )

2.Tools ->Folder Options -> si debifati "Use simple file sharing(Recommended)"( http://i28.tinypic.com/35k8vaw.jpg ) ->Apply ->OK

3.Click dreapta pe folderul dorit -> Properties ->Security( http://i26.tinypic.com/25slmas.jpg ) ->Alegeti contul vostru(in cazul meu ADMINISTRATOR)

4.La permisiunea "Deny"(a contului ales) bifati toate casutele care pot fii bifate ( http://i32.tinypic.com/n3utkk.jpg ) -> Apply -> OK

5.Pt. a avea din nou acces la folderul respectiv,Properties ->Security ->si debifati casutele de la permisiunea "Deny" ->Apply ->OK

:D

Link to comment
Share on other sites

O mica alternativa la acest post.


@echo off
@title Blocheaza/Deblocheaza foldere by Renegade
@cls
@:start
@cls
@echo =============================================
@echo = Blocheaza/Deblocheaza foldere by Renegade =
@echo =============================================
@echo.
@date /t
@time /t
@echo.
@echo 1. Cripteaza
@echo 2. Decripteaza
@echo x. Iesire
@echo.
@echo NOTE:
@echo Fisierul ce trebuie criptat/decriptat sa fie langa acest executabil !!!
@echo Utilizati "" pentru folderele ce contin spatiu in nume. Ex: "New Folder"
@echo.
@set choice=
@set /p choice=Introducetzi numarul optziunii dorite.
@if '%choice%' == '1' goto Criptare
@if '%choice%' == '2' goto Decriptare
@if '%choice%' == 'x' goto Iesire
@if '%choice%' == '' goto start
@echo.

@goto start
@:Criptare
@cls
@set folder=
@set /p folder=Introduceti numele folderului
@ren %folder% %folder%.{21EC2020-3AEA-1069-A2DD-08002B30309D}
@cls
@echo.
@echo ##################################################
@echo # Va multumesc ca ati folosit acest utilitar #
@echo ##################################################
@echo Apasati orice tasta pentru revenirea in meniu.
@pause >nul
@cls
@goto start

@goto start
@:Decriptare
@cls
@set folder=
@set /p folder=Introduceti numele folderului
@ren %folder%.{21EC2020-3AEA-1069-A2DD-08002B30309D} %folder%
@cls
@echo.
@echo ##################################################
@echo # Va multumesc ca ati folosit acest utilitar #
@echo ##################################################
@echo Apasati orice tasta pentru revenirea in meniu.
@pause >nul
@cls
@goto start

@goto end
@
@cls
@goto exit
@:Iesire
@cls

Salvati intr-un batch file si faceti mai simplu lucrul.

Merge programelul

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...