China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-06 09:14
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » What does call :begin mean in a batch file? View 830 Replies 1
Original Poster Posted 2007-11-04 21:42 ·  中国 广东 深圳 电信
新手上路
Credits 14
Posts 4
Joined 2007-10-30 14:33
18-year member
UID 101182
Gender Male
Status Offline
call can call another batch file, while :begin is just a label. Can it be called too?
Floor 2 Posted 2007-11-04 21:48 ·  中国 上海 东方有线
初级用户
Credits 110
Posts 44
Joined 2007-11-01 21:56
18-year member
UID 101435
Gender Male
Status Offline
Check the help first before asking questions oh~~~

Calls one batch program from another.

CALL [drive:][path]filename [batch-parameters]

batch-parameters Specifies the command-line information required by the batch program.

If command extensions are enabled, CALL changes as follows:

The CALL command now accepts labels as the target of CALL. The syntax is:

CALL:label arguments

A new batch file context is created by the specified arguments, and control is passed
to the statement after the specified label. You must "exit" twice by reaching the end
of the batch script file twice. The first time the end of the file is read, control
returns to the line immediately after the CALL statement. The second time
it exits the batch script. Type GOTO /? to see the description of the GOTO :EOF
extension, which allows you to return from a batch script.
Forum Jump: