Это видео недоступно.
Сожалеем об этом.
Free and easy way to lock your files in your computer [Very Easy!! No cost required !! ]
HTML-код
- Опубликовано: 7 ноя 2023
- In this video, I'll guide you through the process of creating a straightforward and cost-free folder lock system.
You just simply need to create a batch file with the code below:
@echo off
title Folder MyLocker
set "folderName=MyLocker"
set "lockerGUID={21EC2020-3AEA-1069-A2DD-08002B30309D}"
if EXIST "%folderName%.%lockerGUID%" (
goto UNLOCK
) else if NOT EXIST "%folderName%" (
md "%folderName%"
echo "%folderName% created successfully"
ping -n 5 127.0.0.1 AngleBracketnul
goto End
)
:CONFIRM
echo Are you sure you want to lock the folder? (Y/N)
set/p "cho=AngleBracket"
if /i "%cho%"=="Y" goto LOCK
if /i "%cho%"=="N" goto END
echo Invalid choice.
ping -n 5 127.0.0.1 AngleBracketnul
goto CONFIRM
:LOCK
ren "%folderName%" "%folderName%.%lockerGUID%"
attrib +h +s "%folderName%.%lockerGUID%"
echo "%folderName% locked"
ping -n 3 127.0.0.1 AngleBracketnul
goto End
:UNLOCK
set "psCommand=powershell -Command "$pword = read-host 'Enter Password to Unlock folder' -AsSecureString ; ^
$BSTR=[System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($pword); ^
[System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR)""
for /f "usebackq delims=" %%p in (`%psCommand%`) do set password=%%p
if NOT "%password%"=="yourpassword" goto FAIL
attrib -h -s "%folderName%.%lockerGUID%"
ren "%folderName%.%lockerGUID%" "%folderName%"
echo "%folderName% Unlocked successfully"
ping -n 1 127.0.0.1 AngleBracketnul
goto End
:FAIL
echo Invalid password
ping -n 1 127.0.0.1 AngleBracketnul
goto end
:End
Copy and paste the code above into a text file and rename it to be bat file.
** PLEASE TAKE NOTE: You need to change AngleBracket wording to the angle bracket symbol.
Good luck guys. Hope this help and love you all !!