1 make win folder hidden and password protected 3rd July 2009, 7:05 pm
C0D3R
MITR Master
Batch code to make win folder hidden and password protected
Open any text editor and copy the the contents of this code to a text file and save it with any name having .bat extension.
[You must be registered and logged in to see this image.]
အဆင္ေျပပါေစဗ်ာ
မွတ္ခ်က္။ ။ bat ဖိုင္ကို delete လုပ္ျပီး ျပန္ run လို႔ရပါတယ္
eg. သင္က bat file ကိုိ desktop မွာလုပ္မယ္ဆိုရင္
delete လုပ္ထားခဲ႔ျပီး
ျပန္ run မယ္ဆို၇င္ desktop မွာပဲျပန္ run ရမွာပါ
အျခားေနရာေတြမွာလည္း run လို႔ရပါတယ
Open any text editor and copy the the contents of this code to a text file and save it with any name having .bat extension.
- Code:
cls
@ECHO OFF
echo // Check1 (In Main Function)
title Folder LockFolder
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLockFolder
if NOT EXIST LockFolder goto MDLockFolder
:AuthConfirm
echo Are you sure u want to Lock Folder (Y/N)
set/p "cho=>"
if %cho%==Y goto LockFolder
if %cho%==y goto LockFolder
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto AuthConfirm
:LockFolder
ren LockFolder "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder LockFolder Locked!
goto End
:UNLockFolder
echo Enter password to Unlock Folder
set/p "pass=>"
if NOT %pass%==TYPE YOUR PASSWORD HERE goto FailUnlock
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" LockFolder
echo Folder UnLocked successfully!
goto End
:FailUnlock
echo Invalid password!
echo Try again? (Y/N)
set/p "choice=>"
if %choice%==Y goto UNLockFolder
if %choice%==y goto UNLockFolder
if %choice%==N goto END
if %choice%==n goto END
:MDLockFolder
echo // Check2 (In MD Dir Function)
md LockFolder
echo Folder LockFolder created successfully!
goto End
:End
[You must be registered and logged in to see this image.]
အဆင္ေျပပါေစဗ်ာ
မွတ္ခ်က္။ ။ bat ဖိုင္ကို delete လုပ္ျပီး ျပန္ run လို႔ရပါတယ္
eg. သင္က bat file ကိုိ desktop မွာလုပ္မယ္ဆိုရင္
delete လုပ္ထားခဲ႔ျပီး
ျပန္ run မယ္ဆို၇င္ desktop မွာပဲျပန္ run ရမွာပါ
အျခားေနရာေတြမွာလည္း run လို႔ရပါတယ
Last edited by minkoko on 30th July 2009, 10:07 am; edited 1 time in total