Assaultz
Member
Im sick today, so i went and did something, I decided abit of batch today. Basically you can lock folders with password.
Belive me, it was pain to the ass to make it work. Actually it was so painful that i couldn't get it work. If you want to try your skills, here is an nice chance to show it by fixing this.
CODE :
[HIDE]
@echo off &title Lock Folder 0.1
call "%appdata%\settings.bat" &cls
color e
:begin
if NOT EXIST "%appdata%\settings.bat" goto :create
if NOT EXIST hidden goto MD
if EXIST "hide" goto unlocker
if EXIST hidden goto :locker
:create
set /p pass=Set new Password:
echo set /p pass=%pass% >>%appdata%\settings.bat
echo Password is stored at; %appdata%\settings.bat
echo.
PAUSE
goto :begin
:locker
echo Press any key to lock folder named "hidden"
echo In this directory.
pause>Nul
cls
ren hidden "hide"
attrib +h +s "hide"
echo Folder locked.
pause>nul
exit
:unlocker
set /p pass1=Enter Your Password to Unlock:
if %pass1% == %pass% goto :succes
exit
:succes
attrib -h -s "hide"
ren "hide" hidden
exit
:MD
MD hidden
goto :begin
[/HIDE]
Enjoy
Belive me, it was pain to the ass to make it work. Actually it was so painful that i couldn't get it work. If you want to try your skills, here is an nice chance to show it by fixing this.

CODE :
[HIDE]
@echo off &title Lock Folder 0.1
call "%appdata%\settings.bat" &cls
color e
:begin
if NOT EXIST "%appdata%\settings.bat" goto :create
if NOT EXIST hidden goto MD
if EXIST "hide" goto unlocker
if EXIST hidden goto :locker
:create
set /p pass=Set new Password:
echo set /p pass=%pass% >>%appdata%\settings.bat
echo Password is stored at; %appdata%\settings.bat
echo.
PAUSE
goto :begin
:locker
echo Press any key to lock folder named "hidden"
echo In this directory.
pause>Nul
cls
ren hidden "hide"
attrib +h +s "hide"
echo Folder locked.
pause>nul
exit
:unlocker
set /p pass1=Enter Your Password to Unlock:
if %pass1% == %pass% goto :succes
exit
:succes
attrib -h -s "hide"
ren "hide" hidden
exit
:MD
MD hidden
goto :begin
[/HIDE]
Enjoy
