MUGEN Philippines
Would you like to react to this message? Create an account in a few clicks or log in to continue.
MUGEN Philippines

MUGEN Philippines is here to allow us the opportunity of experiencing a common interest. If you are a true fan of Mugen, like we are, then this is the place for you. You may chat with friends, share your Mugen creations with others, or view screenshots.
 
HomePortalGalleryLatest imagesSearchRegisterLog in

 

 Sample Batch file Tutorial (Echo and Rem)

Go down 
AuthorMessage
Iznowman
Academy Student (newbie)
Academy Student (newbie)



Number of posts : 5
Reputation : 0
Points : 9
Registration date : 2009-03-13

Sample Batch file Tutorial (Echo and Rem) Empty
PostSubject: Sample Batch file Tutorial (Echo and Rem)   Sample Batch file Tutorial (Echo and Rem) Icon_minitimeJune 18th 2011, 8:29 am

I'll first show you the complete batch file and then explain what each line does.
Code:
@echo off
rem Start of your Batch File
echo Hello World!
echo.
echo My First Tutorial
@pause
simply copy and paste in notepad then
save it as .bat eg. (EchoTest.bat)

The first line (@echo off) is required to tell DOS not to display the succeeding lines on the monitor screen, and the "@" symbol tells DOS not to show the line itself.

"REM" which is short for "Remark". DOS does not execute these lines.

ECHO [message]
Display your message
eg.
echo Hello World
result in this..
Hello World

echo. insert next line.
eg.
echo Hello World!
echo.
echo Hello World!

will result to this..
Hello World

Hello World

and @pause simply pause your batch file. and displays the message Press any key to continue . . .
Back to top Go down
 
Sample Batch file Tutorial (Echo and Rem)
Back to top 
Page 1 of 1
 Similar topics
-
» Batch File
» Complete Stage Creation Tutorial
» [Tutorial] How to loop Particle Illusion animation

Permissions in this forum:You cannot reply to topics in this forum
MUGEN Philippines :: Scriptonite-
Jump to: