(Windows) How to lock a folder without any software

sherazi21st

New member
  1. Open a new notepad file and copy paste the code given at the end of this tutorial
  2. Replace the name ABIDKHAN with your desired password on line number 9 and 22 (Password is case sensitive)
  3. Save this file with lock.bat or with any name with .BAT extension (when notepad ask for name while saving, give it full name like lock.bat. If you give it name without .BAT extension, it'll be saved as a text file.)
  4. Run the newly saved bat file, it'll create your locked folder (Only fist time). Put your files in this folder.
  5. Run the BAT file again. it will ask you to enter password. Enter your password selected in step 2
  6. Your folder is locked and hidden now
  7. Running this BAT file will ask password this time and will unlock and show the hidden folder
Code:
cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Enter password to lock folder or for cancel press N
set/p "cho=>"
if %cho%==ABIDKHAN goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Locker "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%==ABIDKHAN goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End
Last copy paste article. Any more will be deleted. Refer Guidelines to Quality posts. - Genesis
 

sherazi21st

New member
100% in my words, who the hell said it's copy paste? You people just wanna increase posts on the forum for ads etc on the name of free hosting which you don't give, I guess, as no post will be marked as quality post. Some posts might have wrong name while other are copy paste or similar lame objections even if they are fully in own words.

Is there a way to delete my post and my account?