Batch Programming a tui te an Password siam dan ho te zir ho leh mai mai teh ang.
Batch Programming hi chi hnih ah then a ni a, user interface a programme siam, kan lo hmuh leh kan tih ve ngai thin te hi Interactive Mode an tia, hmuh theih loh a lo in run thei tur a siam hi Batch Mode (Silent Mode) an ti bik deuh kher a, hman sual leh midang tihbuai nan a hman an chin avangin Batch Programming hi i thiam viau a nih pawhin midang tih buainan hman kher loh tur a nia aw...
Tun a kan sawi tur bik hi chu hman sual theih lem loh a ni bawk a, sawi tan nghal ang.
I Notepad emaw WordPad emaw kha hawng la,
a hnuaia mi ang hian chhu lut ang che.
******************************************
@Echo off
cls
:Password
Set input=
set /p input= Password (Password i chhut zawhah enter kha hmet ang che) :
if %input%==zohuap goto YES
if not %input%==zohuap goto NO
:YES
Start Calculator
Exit
:NO
Echo PASSWORD A DIKLO
pause
goto Password
***********************************************
A chunga mi khi Notepad ah chuan copy lut la, Save as ah khan Save as type ah khan All files tih kha i thlang ang a, Calculator.bat tih in han save chhin teh. I zawh hnu ah i Batch file siam kha han open la, a hnathawh dan chu i hmu thiam nghal mai ang.
SAWIFIAHNA :
1) echo : echo hi C Programming a prinf nen a inang deuh a, kan programe a thil va tarlangtu a ni.
2) cls : DOS Command a cls kha ni mai. Screen lo tifaitu a ni mai.
3) :Password : Kan variable declare hming a ni ve mai ang chu
4) Set input: : Thu chhut luhna tur command
5) if command kan hman chuan a nih chuan tihna ang kha ni mai, if not a nih chuan a nih loh chuan... hehe
6) zohuap tih khi password tur a kan set a ni a, i duh chuan a dang pawh i hmang daih thei.
7) Entirnan Calculator kan hman avangin Start Calculator kan han ti a, a dang pawh i hmang daih thei.
Batch Programming hi chi hnih ah then a ni a, user interface a programme siam, kan lo hmuh leh kan tih ve ngai thin te hi Interactive Mode an tia, hmuh theih loh a lo in run thei tur a siam hi Batch Mode (Silent Mode) an ti bik deuh kher a, hman sual leh midang tihbuai nan a hman an chin avangin Batch Programming hi i thiam viau a nih pawhin midang tih buainan hman kher loh tur a nia aw...
Tun a kan sawi tur bik hi chu hman sual theih lem loh a ni bawk a, sawi tan nghal ang.
I Notepad emaw WordPad emaw kha hawng la,
a hnuaia mi ang hian chhu lut ang che.
******************************************
@Echo off
cls
:Password
Set input=
set /p input= Password (Password i chhut zawhah enter kha hmet ang che) :
if %input%==zohuap goto YES
if not %input%==zohuap goto NO
:YES
Start Calculator
Exit
:NO
Echo PASSWORD A DIKLO
pause
goto Password
***********************************************
A chunga mi khi Notepad ah chuan copy lut la, Save as ah khan Save as type ah khan All files tih kha i thlang ang a, Calculator.bat tih in han save chhin teh. I zawh hnu ah i Batch file siam kha han open la, a hnathawh dan chu i hmu thiam nghal mai ang.
SAWIFIAHNA :
1) echo : echo hi C Programming a prinf nen a inang deuh a, kan programe a thil va tarlangtu a ni.
2) cls : DOS Command a cls kha ni mai. Screen lo tifaitu a ni mai.
3) :Password : Kan variable declare hming a ni ve mai ang chu
4) Set input: : Thu chhut luhna tur command
5) if command kan hman chuan a nih chuan tihna ang kha ni mai, if not a nih chuan a nih loh chuan... hehe
6) zohuap tih khi password tur a kan set a ni a, i duh chuan a dang pawh i hmang daih thei.
7) Entirnan Calculator kan hman avangin Start Calculator kan han ti a, a dang pawh i hmang daih thei.