Sunday, June 8, 2014

Batch Lessons part 2

Today I am going to teach you how to code Batch.  If you type in title in then something else it will make it the title.


title Hi


You could also make a program like this where it randomly switches titles.


@echo off
:1
title qa
:2
title fd
:3
title as
:4
title rd
:5
title sd
goto 1


Also to goto a spot you type in goto then the name of that place.  To make a place a place you have to type a : before the name and the name can only be 1 word long.


:hi
@echo Hi
pause
goto hi

No comments:

Post a Comment