Une petit astuce présenté par Robin de la chaine : https://www.youtube.com/channel/UCi74t_URIIXcGr3pMmkZPlQ
1- Copiez tout (sauf cette phrase bien sûr !) et changez tonpassici en rouge
cls
@ECHO OFF
title Folder Private
if EXIST « Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D} » goto UNLOCK
if NOT EXIST Private goto MDLOCKER
:CONFIRM
echo Etes vous sure de vouloir bloquer les fichiers Y=Oui N=Non(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 Private « 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%== tonpassici goto FAIL
attrib -h -s « Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D} »
ren « Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D} » Private
echo Bien Bloquer GG
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End
|
Comme un débutant, je suis toujours à la recherche en ligne pour les articles qui peuvent m’aider.