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-06-25 20:10
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Question about using call in a batch file View 914 Replies 0
Original Poster Posted 2003-05-05 00:00 ·  中国 北京 联通
初级用户
Credits 148
Posts 5
Joined 2003-05-01 00:00
23-year member
UID 1788
Gender Male
Status Offline
Help me:

When switching from one batch file to another, for example:

*********file1.bat*********
call file2.bat
echo display file1
file2.bat
echo display file1 again

*********file2.bat*********
echo display file2
...
...
...

After executing file1.bat, it should display:
display file2
display file1
display file2

Right?



But why does it instead become this (during system startup):
display file2
display file1
display file2
display file1
Forum Jump: