Friday, May 23, 2014

Secure Folder

This is a secure folder that is invisible and can only be accessed by this batch program.  First go to your desktop and right click the background.  Then hover over new and press text document.  Then do the same thing except create a new folder instead of a text document.  Open the folder and put the text document in.  Then right click the folder and select properties.  Near the bottom of the properties page there will be a check box with the word hidden right next to it.  Check the box and press apply and when the dialogue box comes up, select the answer that says this folder and all of the sub folders etc.  Then go to the desktop and make another new text document.  This time save it as pass.bat .  At the places where it says <username goes here> put your username and at the places where it says <password goes here> put your password.  At the part where it says <name of folder goes here> paste the name of your folder (C:\Users\Tate\Desktop\Secret-Folder).  You can not put a space in the folder name or it will not work.  Right click the document and paste this code into it.


@ECHO OFF
TITLE Login
COLOR 0a
:USERID
CLS
ECHO Enter User ID:
ECHO > NUL
SET /p USERID=
IF %USERID% EQU <username goes here> GOTO PASSWORD
IF %USERID% LSS <username goes here> GOTO INVALID
IF %USERID% GTR <username goes here> GOTO INVALID
:PASSWORD
CLS
ECHO Enter autherization code:
SET /p PASSWORD=
IF %PASSWORD% EQU <password goes here> GOTO MAIN
IF %PASSWORD% LSS <password goes here> GOTO INVALID
IF %PASSWORD% GTR <password goes here> GOTO INVALID
:INVALID
CLS
ECHO INAVLID LOGIN.....
PING -n 3 127.0.0.1 > NUL
ECHO Please try again...
PING -n 3 127.0.0.1 > NUL
GOTO USERID2
:USERID2
CLS
ECHO Enter User ID:
ECHO > NUL
SET /p USERID=
IF %USERID% EQU <username goes here> GOTO PASSWORD2
IF %USERID% LSS <username goes here> GOTO INVALID2
IF %USERID% GTR <username goes here> GOTO INVALID2
:PASSWORD2
CLS
ECHO Enter autherization code:
SET /p PASSWORD=
IF %PASSWORD% EQU <password goes here> GOTO MAIN
IF %PASSWORD% LSS <password goes here> GOTO INVALID2
IF %PASSWORD% GTR <password goes here> GOTO INVALID2
:INVALID2
CLS
ECHO INAVLID LOGIN.....
PING -n 3 127.0.0.1 > NUL
ECHO Please try again...
PING -n 3 127.0.0.1 > NUL
:LOOP
shutdown.exe /s /t 00
GOTO LOOP
:MAIN
ECHO Welcome...
ECHO You are super awesome...
start <name of folder goes here>
PING -n 3 127.0.0.1 > NUL


The program will open the folder and then you can put stuff into it.  If you get the password wrong twice it will shutdown the computer so people can't keep trying.

No comments:

Post a Comment