GMgKe586q6suSQnyqZLlGCooeWM
Learn To Program
Increase Your Knowlegde and Build Your Skill!
Pages
Home
Me
Search
Saturday, December 25, 2010
Batch Basic
Batch file is a file that consift of DOS command. What you can do in command prompt, will also can be done in batch file. Type this code in hello.bat, and then execute it with
C:\hello.bat lady gaga
@ECHO OFF
ECHO hello, %1
To make a variable, type:
SET name=Lady Gaga
echo %name%
PAUSE
IF Statements:
@ECHO OFF
SET a=luna
SET b=luna
IF %a%==%b% GOTO luna
ECHO Sorry, Lady!
:luna
ECHO You may win, Luna!
Batch Basic
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment