Как поставить пароль на папку
Devis2301302
Cls
@echo off
title folder private
if exist «htg locker» goto unlock
if not exist private goto mdlocker
:confirm
echo are you sure you 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 private «htg locker»
attrib +h +s «htg locker»
echo folder locked
goto end
:unlock
echo enter password to unlock folder
set/p «pass=>»
if not %pass%== password_goes_here goto fail
attrib – h – s «htg locker»
ren «htg locker» private
echo folder unlocked successfully
goto end
:fail
echo invalid password
goto end
:mdlocker
md private
echo private created successfully
goto end
:end
{$ noItemsMessage $}