Post Title : How to lock folder through CMD
Post Title : How to lock folder through CMD
How to lock folder through CMD
This Trick Will Show You That How To Lock Folder Through CMD.
I had Written Some Codes In Notepad and Save As .bat File To make It for a DOS.
The Codes are given in STEP:#3
The provided Codes has Some Parts in which the User's name and password is mentioned, so you can change that in your own way you want. (described in STEP:#3)
(MS-DOS FOR BEGINNERS): I Would also Like to Mention That Batch Programming is the Easiest/Funniest & Interesting thing To Know About, so just try to read my codes line-by-line and just try to understand the way that codes carried out for their action otherwise Read Books For your Reference or Just Google And Follow Some Of the Best Forums, Blogs Nd all...
I had Written Some Codes In Notepad and Save As .bat File To make It for a DOS.
The Codes are given in STEP:#3
The provided Codes has Some Parts in which the User's name and password is mentioned, so you can change that in your own way you want. (described in STEP:#3)
(MS-DOS FOR BEGINNERS): I Would also Like to Mention That Batch Programming is the Easiest/Funniest & Interesting thing To Know About, so just try to read my codes line-by-line and just try to understand the way that codes carried out for their action otherwise Read Books For your Reference or Just Google And Follow Some Of the Best Forums, Blogs Nd all...
Step 1: #1
Step 3: #3
SO THE CODES ARE HERE:
cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST secured goto MDLOCKER
:CONFIRM
echo Are you sure u want to Lock the secured(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 secured "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s +r +i "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo secured locked
goto End
:UNLOCK
echo put in the key to Unlock the lock
set/p "pass=>password"
if NOT %pass%==123456 goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" secured
echo secured Unlocked
goto End
:FAIL
echo Invalid keyword
goto UNLOCK
:MDLOCKER
md Secured
echo lock unlocked
goto End
:End
NOTE: In 23rd Line You can see the default password i.e., 123456 , so just change this to the password you want.
- So Just write The Codes In a same Way it is written And Save as "all file" type with file name lock.bat or anything.bat
OH! Wait! Some Of You Find it Difficult To write! i Guess, Okay! Download iT From here:
http://www16.zippyshare.com/v/57113048/file.html
Step 4: #4
cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST secured goto MDLOCKER
:CONFIRM
echo Are you sure u want to Lock the secured(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 secured "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s +r +i "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo secured locked
goto End
:UNLOCK
echo put in the key to Unlock the lock
set/p "pass=>password"
if NOT %pass%==123456 goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" secured
echo secured Unlocked
goto End
:FAIL
echo Invalid keyword
goto UNLOCK
:MDLOCKER
md Secured
echo lock unlocked
goto End
:End
NOTE: In 23rd Line You can see the default password i.e., 123456 , so just change this to the password you want.
- So Just write The Codes In a same Way it is written And Save as "all file" type with file name lock.bat or anything.bat
OH! Wait! Some Of You Find it Difficult To write! i Guess, Okay! Download iT From here:
http://www16.zippyshare.com/v/57113048/file.html
Step 4: #4
Bug: Some Of The Users Told Me That during This Step #5 when we lock the folder, the folder is still seen...
Bug Fixed: So Just Refresh (Press Ctrl+F5) it once in desktop or in the location where you are trying to lock that file...
Bug Fixed: So Just Refresh (Press Ctrl+F5) it once in desktop or in the location where you are trying to lock that file...
Step 6: #6
Demikianlah Artikel How to lock folder through CMD
Sekian customgadget How to lock folder through CMD, mudah-mudahan bisa memberi manfaat untuk anda semua.
0 Response to "How to lock folder through CMD"
Post a Comment