Post: [TUT] How to make a locked folder!
10-21-2014, 04:51 PM #1
iAmCracky
Can’t trickshot me!
(adsbygoogle = window.adsbygoogle || []).push({}); Hey NGU users Enzo,

Today i'm going to show you how to lock a folder on your laptop/PC.
First I want to say that i'm not the one who made this code. I found it on Google and thought it would be nice to make a tut about it on NGU as well.

***NOTE*** Im not sure if this works on MAC (Dont think so)

Lets get started

1. Open notepad.

2. Copy and paste this code into notepad.

    
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 ----------------------------
echo Folder locked.
echo ----------------------------
goto End
:UNLOCK
echo Enter password to unlock folder
set/p "pass=>"
if NOT %pass%== ***PASSWORD HERE*** goto FAIL
attrib -h -s "HTG Locker"
ren "HTG Locker" Private
echo ----------------------------
echo Folder Unlocked successfully
echo ----------------------------
goto End
:FAIL
echo ----------------------------
echo Invalid password
echo ----------------------------
goto end
:MDLOCKER
md Private
echo ----------------------------
echo Private created successfully
echo ----------------------------
goto End
:End



3. Edit "***PASSWORD HERE***" to whatever you want as password. (Without the "")

4. Save the notepad and click on "any files", then name it "locker.bat" (WITHOUT "")

5. Open the 'locker.bat' and it will create a folder called "Private"

6. Done

How to Open or Close the folder:

If you want to unlock the folder, you have to open "locker.bat" and type in your password.
If you want to lock the folder you have to open "locker.bat" and click Y.

P.S. You can put the "locker.bat" anywhere you want.

CREDITS:
You must login or register to view this content.

Hope this helped some of you guys out! Smile
-Cracky Magglass1
Last edited by iAmCracky ; 10-23-2014 at 05:36 PM.

The following user thanked iAmCracky for this useful post:

iAmCoast
10-22-2014, 08:20 AM #2
Pichu
RIP PICHU.
If you're going to take someone else's source, might as well give credit. You must login or register to view this content.
10-22-2014, 08:34 AM #3
iAmCracky
Can’t trickshot me!
Originally posted by Pichu View Post
If you're going to take someone else's source, might as well give credit. You must login or register to view this content.


If you're going to say stuff like that, you might as well read the thread.
10-23-2014, 05:52 AM #4
Pichu
RIP PICHU.
Originally posted by iAmCracky View Post
If you're going to say stuff like that, you might as well read the thread.


You still give credit where it is due considering you had to of have taken it from a source. That's like me taking someone else's software, saying I didn't write it but here you go and putting it out there. I won't say who wrote it though but here, have it. Ignore the person who wrote up the guide on their website it's now under my name.

If it's easily available, provide the source and give credit where it is due. If it's just snippets, nothing is really needed there but you posted someone else's guide and you could have just added a link under the post directing people.
Last edited by Pichu ; 10-23-2014 at 05:54 AM.
10-23-2014, 10:44 AM #5
iAmCracky
Can’t trickshot me!
Originally posted by Pichu View Post
You still give credit where it is due considering you had to of have taken it from a source. That's like me taking someone else's software, saying I didn't write it but here you go and putting it out there. I won't say who wrote it though but here, have it. Ignore the person who wrote up the guide on their website it's now under my name.

If it's easily available, provide the source and give credit where it is due. If it's just snippets, nothing is really needed there but you posted someone else's guide and you could have just added a link under the post directing people.


Like I said, im not the one who made it. If theres no name i dont know who made it at first.
10-23-2014, 05:28 PM #6
Default Avatar
Oneup
Guest
Originally posted by iAmCracky View Post
Like I said, im not the one who made it. If theres no name i dont know who made it at first.


Well for starters you could at least link the source you took it from.
10-23-2014, 05:34 PM #7
iAmCracky
Can’t trickshot me!
Originally posted by 1UP View Post
Well for starters you could at least link the source you took it from.


I got it a few months back, pretty sure I cant find the source anymore...

EDIT: Added the source from Pichu.
Last edited by iAmCracky ; 10-23-2014 at 05:36 PM.
10-23-2014, 07:07 PM #8
You can do this sort of thing on Linux, you just set the directories owner to root then revoke all permissions for others users so when you're logged in as your user like normal you can't access the directory without right clicking and opening as root which requires a password, you can also set the directory to hidden for extra protection.
11-20-2014, 05:29 PM #9
McLovinMods
Do a barrel roll!
Pretty Handy! Will be using. Smile

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo