Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Batch: Working with labels


Labels are used to organize the code.

How to Define a label?
Using :, you can define a label.

Example
:label1

Hello.bat
@ECHO OFF

ECHO Hello, Good Morning

:START
ECHO Starting execution

:IN_PROCESS
ECHO Program Execution is in process

:FINISHED
ECHO Program finished Execution

C:\Users\Public>Hello
Hello, Good Morning
Starting execution
Program Execution is in process
Program finished Execution

GOTO statement
GOTO is used to execute the statements from given label (I mean you can jump to any other label).

Syntax
GOTO label



This post first appeared on Java Tutorial : Blog To Learn Java Programming, please read the originial post: here

Share the post

Batch: Working with labels

×

Subscribe to Java Tutorial : Blog To Learn Java Programming

Get updates delivered right to your inbox!

Thank you for your subscription

×