Fichier locker.bat

Report
Posts
1
Registration date
Monday May 3, 2021
Status
Member
Last seen
May 3, 2021
-
Posts
11110
Registration date
Friday October 30, 2015
Status
Moderator
Last seen
November 23, 2021
-
Bjr a tous, j'ai utilisé le fichier locker.bat pour fermer mon fichier, voila la syntaxe.
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.
pause
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%==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
pause
goto end
:MDLOCKER
md Locker
echo Locker created successfully
pause
goto End
:End

Mais le contenue de mon dossier ne s'affiche pas
S'il vous plais aidez moi j'y est mis des documents tres importants
Je ne sais plus quoi faire
Merci d'avance

1 reply

Posts
11110
Registration date
Friday October 30, 2015
Status
Moderator
Last seen
November 23, 2021
1,684
Hi,

You have posted your question on the English forum. I invite you to repost it on the French forum, or, explain your question here in English.