Myanmar IT Resource Forum
Myanmar IT Resource Forum
Myanmar IT Resource Forum

You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

C0D3R

C0D3R
MITR Master



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.


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

http://www.myanmaritresource.info

alt.332

alt.332
Administrator



Administrator
အစ္ကို ကၽြန္ေတာ္စမ္းၾကည့္တာ password ေပးတာတို႔ ဘာတို႔မေပၚဘူးခင္ဗ်...နည္း၂ ျပန္ျပင္ေပးပါဦး

http://www.myanmaritresource.info

C0D3R

C0D3R
MITR Master



MITR Master
ျပန္ျပင္ေပးထားပါတယ္
အဆင္မေျပရင္ျပန္ေျပာပါဗ်ာ

[You must be registered and logged in to see this image.]

http://www.myanmaritresource.info

alt.332

alt.332
Administrator



Administrator
စမ္းၾကည့္လိုက္ဦးမယ္ဗ်ာ...

http://www.myanmaritresource.info

3iton3

3iton3
MITR Reader



MITR Reader
minkoko wrote:ျပန္ျပင္ေပးထားပါတယ္
အဆင္မေျပရင္ျပန္ေျပာပါဗ်ာ

[You must be registered and logged in to see this image.]

အဆင္မေျပတာေတာ့ အမွန္ပဲဗ်
bat file တစ္ခါလုပ္ျပီးရင္password ျပန္ခ်ိန္းလုိ႔မရေတာ့၀ူးဗ်
အေသၾကီးျဖစ္ေနတယ္ လုပ္ပါဦးေနာ့
နည္းေလး ဘာေလးရွိရင္

C0D3R

C0D3R
MITR Master



MITR Master
password ကေတာ႔အေသပါပဲ
ဒါေပမယ္႔ ဖိုင္တစ္ခုအတြက္ပဲ႔

အျခား password ေတြလည္းေပးလို႔ရပါတယ္

if NOT %pass%==TYPE YOUR PASSWORD HERE goto FailUnlock

type your password here ဆိုတဲ႔ ေနရာမွာ ေပးခ်င္တဲ႔ password ကိုရိုက္ထည္ပါ

စမ္းၾကည္႔ပါဦးဗ်ာ
အဆင္မေျပရင္ျပန္ေျပာပါခင္ဗ်ား

http://www.myanmaritresource.info

3iton3

3iton3
MITR Reader



MITR Reader
အဆင္ေတာ့ေျပသြားပါတယ္
ဒါေပမယ့္ သူမ်ားက password ခ်ိန္းသြားႏုိင္တာေပါ့
အဲဒါဆုိသြားျပီ confused

C0D3R

C0D3R
MITR Master



MITR Master
အဆင္ေတာ့ေျပသြားပါတယ္
ဒါေပမယ့္ သူမ်ားက password ခ်ိန္းသြားႏုိင္တာေပါ့
အဲဒါဆုိသြားျပီ

သူမ်ား password မခ်ိန္းနိုင္ေအာင္ file ကိုေဖ်ာက္ျပီးရင္
bat ဖိုင္ကိုဖ်က္လိုက္ေလ
္file ကိုျပန္ေပၚေစခ်င္ရင္
bat ဖိုင္ကိုျပန္ကူးျပီး ေစာေစာက ညီေပးထားထဲ႔ password ကိုျပန္ေပးျပီး
ျပန္ဖြင္႔ပါ
ဒါဆိုအဆင္ေျပျပီညီ

မရွင္းရင္ထပ္ေမးပါဦး

http://www.myanmaritresource.info

လူေလး

လူေလး
MITR New User



data ေတြထည့္ျပီး folder ကိုေတာ့ေဖ်ာက္လိုက္ျပီ..
ေကာင္းပါတယ္ဗ်ာ။ bounce

C0D3R

C0D3R
MITR Master



MITR Master
data ေတြထည့္ျပီး folder ကိုေတာ့ေဖ်ာက္လိုက္ျပီ.

folder ကိုေဖ်ာက္ျပီး bat file ကိုလည္းဖ်က္လိုက္
ဒါဆိုဘယ္သူမမသိေတာ႔ဘူး Cool

ျပန္လိုခ်င္ရင္ အဲဒီ bat file ကို copy ကူးျပီး password ကိုျပန္ထည္ျပီး run လိုက္ပါ
ဒါဆိုေစာေစာကေဖ်ာက္ထားတဲ႔ lock folder ေလးျပန္ေပၚလာပါလိမ္႔မယ္

မွတ္ခ်က္ ။ ။ password မွားသြားခဲ႔ ရင္ အထဲက data ေတြအားလံုးပ်က္စီးသြားမွာျဖစ္ပါတယ္

[You must be registered and logged in to see this image.]

http://www.myanmaritresource.info

ogre

ogre
Moderator



Moderator
မပ်က္စီးပါဘူး lock လုပ္ထားေပမဲ. file name ကို မွတ္မိရင္ star=>search ကို click လုပ္ပါ။
မိမိ file name ကို search လုပ္လိုက္ပါ။ မိမိ data ေတြကိုျပန္ရႏိူင္ပါတယ္။

http://www.myanmarhelper.co.cc

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum

 

Create a forum | ©phpBB | Free forum support | Report an abuse | Forumotion.com