HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to Password Protect a Folder (Using Batch File Coding)

2,849 views November 2, 2012 1:10

Watch on YouTube
ChannelGobrewers12345 yall know it

Description from the creator

this is a tutorial on how to create a password protected folder using batch file code and notepad

*************CHANGE IN WEBSITE PLANS!!!!!!!!!!****************************************

LOOK UNDER THIS WEBSITE INSTEAD...THE OTHER ONE WAS TAKEN DOWN!

howtogeek.com/105633/how-to-create-a-password-p…

THE CODE IS IN THE 3RD STEP OF THIS WEBSITE. ITS BEGINS WITH:

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

Youtube would not let me put two characters in the description so I would recommend checking the howtogeek site just in case for the exact precise coding. I believe they are two greater-than symbols at the end of lines 8 and 22 of coding.

About this tutorial

Gobrewers12345 yall know it published this 1:10 video tutorial on November 2, 2012. It has been watched 2,849 times on YouTube.

Duration
1:10
Published
November 2, 2012
Views
2,849
Likes
12

Tags

Share

This tutorial in other languages