၁၊ Hard Disk ေပၚမွာ Flash ဆိုျပီး ေတာ့ Folder တစ္ခုတည္ေဆာက္ပါ။
၂။ ဖြတ္ခ်င္ေသာ file မ်ားကို အသစ္တည္ေဆာက္ထားေသာ Flash Folder ထဲသို႔ ထည့္ပါ။
၃။ ctrl + R ႏွိပ္ ျပီး cmd လို႔ရိုက္ျပီး Enter ေခါက္ပါ။
၄။ cmd တြင္ attrib Flash +s +h လို႔ ရိုက္ပါ။
၅။ Folder နာမည္ေနရာတြင္ ကိုယ္အသစ္တည္ေဆာက္ထားေသာ Folder နာမည္ထည့္ပါ။
၆။ Notepad ကို ဖြင့္ပါ။ထိုထဲတြင္
@echo off
setlocal enabledelayedexpansion
title Password
:START
cls
echo Please Enter password...
echo.
set /p pass=Pass:
if /i '!pass!'=='ENTERYOURPASSWORDHERE' goto next
cls
echo !pass! is not the password. Try again.
pause
goto START
:next
if exist D:/Flash (
set Jbe=D
)
if exist E:/Flash (
set Jbe=E
)
if exist F:/Flash (
set Jbe=F
)
if exist G:/Flash (
set Jbe=G
)
if exist H:/Flash (
set Jbe=H
)
if exist I:/Flash (
set Jbe=I
)
if exist J:/Flash (
set Jbe=J
)
if exist K:/Flash (
set Jbe=K
)
if exist L:/Flash (
set Jbe=L
)
if exist M:/Flash (
set Jbe=M
)
%Jbe%:
start explorer.exe Flash || goto ERROR
exit
:ERROR
cls
echo There was an error opening the file. Would you like
echo to try again???
echo.
set /p jam=Yes or No:
if /i '%jam%'=='yes' goto next
if /i '%jam%'=='no' goto seeya
cls
if not defined jam goto ERROR
echo %jam% is an invalid option. Try again.
pause
goto ERROR
:seeya
Cls
echo Well, see ya!
ping -n 2 127.0.0.1>nul
exit
setlocal enabledelayedexpansion
title Password
:START
cls
echo Please Enter password...
echo.
set /p pass=Pass:
if /i '!pass!'=='ENTERYOURPASSWORDHERE' goto next
cls
echo !pass! is not the password. Try again.
pause
goto START
:next
if exist D:/Flash (
set Jbe=D
)
if exist E:/Flash (
set Jbe=E
)
if exist F:/Flash (
set Jbe=F
)
if exist G:/Flash (
set Jbe=G
)
if exist H:/Flash (
set Jbe=H
)
if exist I:/Flash (
set Jbe=I
)
if exist J:/Flash (
set Jbe=J
)
if exist K:/Flash (
set Jbe=K
)
if exist L:/Flash (
set Jbe=L
)
if exist M:/Flash (
set Jbe=M
)
%Jbe%:
start explorer.exe Flash || goto ERROR
exit
:ERROR
cls
echo There was an error opening the file. Would you like
echo to try again???
echo.
set /p jam=Yes or No:
if /i '%jam%'=='yes' goto next
if /i '%jam%'=='no' goto seeya
cls
if not defined jam goto ERROR
echo %jam% is an invalid option. Try again.
pause
goto ERROR
:seeya
Cls
echo Well, see ya!
ping -n 2 127.0.0.1>nul
exit
၇။ ကိုယ္ေပးခ်င္တဲ့နာမည္ရဲ႕ေနာက္က “ .bat “ ျဖင့္သိမ္းပါ။
၈။ ျပီးရင္ Right click ႏွိပ္ျပီး create shortcut ႏွိပ္ပါ။
၉။ ctrl + R ႏွိပ္ ျပီး cmd လို႔ရိုက္ျပီး Enter ေခါက္ပါ။
၁၀။ cmd တြင္ attrib filename.bat +s +h လို႔ ရိုက္ပါ။
၁၁။ အခုဆိုရင္ shortcut ပြားထားေသာ file သာက်န္ေနသည္။ ထုိ file တြင္ Right click ႏွိပ္ျပီး properties ကိုေရြးျပီး change icon မွာ icon ပံုစံမ်ားကို ေျပာင္းကာ သံုးနိုင္ပါျပီ။
No comments:
Post a Comment