APPZXOR
Hello and welcome to APPZXOR,

We would appreciate if you register so you can enjoy
the full benefits of browsing, viewing and using our forum.
Here are some features:

• Create threads;
• Reply to threads;
• View links & images;
• Leave positive or negative feedback to a member.

What are you waiting for? Go ahead and register!
It's free, quick and easy!
APPZXOR
Hello and welcome to APPZXOR,

We would appreciate if you register so you can enjoy
the full benefits of browsing, viewing and using our forum.
Here are some features:

• Create threads;
• Reply to threads;
• View links & images;
• Leave positive or negative feedback to a member.

What are you waiting for? Go ahead and register!
It's free, quick and easy!
APPZXOR
Would you like to react to this message? Create an account in a few clicks or log in to continue.


Where Applications Become AppZ. Join Us Now!
 
HomePortalSearchLatest imagesRegisterLog in
Search
 
 

Display results as :
 
Rechercher Advanced Search
Latest topics
» See you next decade.
You might interest on this  Icon_minitimeby LarsValraz Fri Sep 09, 2022 4:43 pm

» Clean Up On Database
You might interest on this  Icon_minitimeby Vex338 Mon Jul 06, 2020 2:59 pm

» Guess who's back!
You might interest on this  Icon_minitimeby Vex338 Thu Feb 01, 2018 12:16 pm

» [COC] Clash of Clans
You might interest on this  Icon_minitimeby D'ShadowZRay Thu Jan 28, 2016 12:10 am

» iam new
You might interest on this  Icon_minitimeby D'ShadowZRay Thu Jan 28, 2016 12:06 am

» I need some help
You might interest on this  Icon_minitimeby akumasan_01 Fri May 01, 2015 1:25 pm

» HELLO GUYS! :))
You might interest on this  Icon_minitimeby Appz-RhastaSix Fri Sep 19, 2014 9:14 am

» Visual C# Programming Basics
You might interest on this  Icon_minitimeby Appz-RhastaSix Wed Sep 10, 2014 9:03 am

» Old Game!
You might interest on this  Icon_minitimeby iRegen Tue May 13, 2014 12:28 am


Top posters
[Detheroc_93]
You might interest on this  I_vote_lcapYou might interest on this  I_voting_barYou might interest on this  I_vote_rcap 
MrStar
You might interest on this  I_vote_lcapYou might interest on this  I_voting_barYou might interest on this  I_vote_rcap 
kurosakinaruto
You might interest on this  I_vote_lcapYou might interest on this  I_voting_barYou might interest on this  I_vote_rcap 
GreyPhantom
You might interest on this  I_vote_lcapYou might interest on this  I_voting_barYou might interest on this  I_vote_rcap 
ShadowSonic
You might interest on this  I_vote_lcapYou might interest on this  I_voting_barYou might interest on this  I_vote_rcap 
Appzwesley29
You might interest on this  I_vote_lcapYou might interest on this  I_voting_barYou might interest on this  I_vote_rcap 
z_f
You might interest on this  I_vote_lcapYou might interest on this  I_voting_barYou might interest on this  I_vote_rcap 
MasterGandeo
You might interest on this  I_vote_lcapYou might interest on this  I_voting_barYou might interest on this  I_vote_rcap 
Vex338
You might interest on this  I_vote_lcapYou might interest on this  I_voting_barYou might interest on this  I_vote_rcap 
wafumon
You might interest on this  I_vote_lcapYou might interest on this  I_voting_barYou might interest on this  I_vote_rcap 

Share | 
 

 You might interest on this

View previous topic View next topic Go down 
AuthorMessage
D'ShadowZRay
Contributor
Contributor

D'ShadowZRay

Posts : 1056
Join date : 2011-04-13
Age : 35
Location : Malaysia

You might interest on this  Empty
PostSubject: You might interest on this    You might interest on this  Icon_minitimeThu Sep 15, 2011 12:50 pm

Create a password for folder

You'll need this if you don't want other people to see your file


Here,

Note: This is NOT a very secure method of protecting your folders. So use it at your own risk.

Here is the code that you need:

cls
@ECHO OFF
title Folder Personal
if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” goto UNLOCK
if NOT EXIST Personal goto MDLOCKER
:CONFIRM
echo Are you sure u 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 Personal “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
attrib +h +s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
echo Folder locked
goto End
:UNLOCK

echo Enter password to Unlock folder
set/p “pass=>”
if NOT %pass%==pwd123 HERE goto FAIL
attrib -h -s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
ren “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” Personal
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Personal
echo Personal created successfully
goto End
:End

Now here is what you need to do:

Just copy the above code and paste it into Notepad. Save it by giving it any name you choose. Assuming, the file is called secret.txt, change the extension to ‘.bat‘ so that the new name becomes secret.bat. What you get is a batch file. You could actually save one step by saving the file in Notepad directly as secret.bat by enclosing the file name like this: “secret.bat” . This batch file is the one that you need. You can edit this batch file to change the folder name and the password. To change the name of the folder that is created, change the ‘Personal’ (in bold in the above code) to any another name you choose. Likewise change the ‘pwd123′ (in red in the code) to anything else.

Now let’s see how to use it. Place the file in the location where you would like to create your protected folder. Run the batch file by double clicking on it. This will create a folder named Personal in the same location as the batch file. You can now open this folder and place any files in it. Once you are finished, run the batch file again. You will be asked whether you want to lock the folder. Entry ‘Y’ (for Yes) and hit Enter. The folder becomes invisible. To retrieve the folder, run the batch file again. You will be prompted to enter the password. Enter the password, hit enter and voila! the folder appears.

Important: The batch file acts like a key to open the locked folder. So once you have created and locked a folder, do not keep the batch file in the same location since anybody can open the batch file and view your password. So I would suggest that you keep the batch file in a separate and safe place or better still keep it on your pen drive or flash drive. That way when you want to open the folder just copy the batch file to the location where you have your protected folder and run it.

Do remember that the above method is not intended to act as a substitute for the numerous free and commercial softwares that are specifically designed to provide security and encryption to your data.


Post from the author(the one post this thing) : Update: I got comments saying the code does not work. Of course I did check it before posting it here. But I have identified the problem. The problem is with the straight double quotes used in the code in this post. Once you copy the code you would also need to change each of the double quotes with your keyboard double quotes. That might seem a lot of work for some. So I thought it would be easier to give away the batch file itself.

Easy way,Download the batch file.. [You must be registered and logged in to see this link.]

Credits : This site(APPZXOR)
Back to top Go down
 

You might interest on this

View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
APPZXOR :: Discussions :: Tricks & Tutorials-
Free forum | Society and Culture | Childhood, Family | ©phpBB | Free forum support | Report an abuse | Forumotion.com