中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-09-23 14:10
47,812 topics / 349,917 posts / today 0 new / 48,273 members
DOS批处理 & 脚本技术(批处理室) » Can the GOTO in a sub-BAT of WBAT go to the main BAT or other BATs?
Printable Version  1,722 / 3
Floor1 GOTOmsdos Posted 2005-04-24 00:00
铂金会员 Posts 1,827 Credits 5,154
As the title.
Supplementary: Generally, GOTO can only go to the label of the current BAT, but sometimes it is inconvenient.
Floor2 gmy Posted 2005-04-26 00:00
版主 Posts 392 Credits 1,113
This is the common problem of BASIC and BAT, the weakness of GOTO.
Floor3 willsort Posted 2005-04-30 00:00
元老会员 Posts 1,512 Credits 4,432
Re: GOTOmsdos:

Through standardized program design, it is possible to achieve Goto or Call in Bat to its own or other Bat labels.

Structure of the calling side


Structure of the called side

Floor4 GOTOmsdos Posted 2005-04-30 00:00
铂金会员 Posts 1,827 Credits 5,154
willsort is here.
After taking a look, it's pretty good. Skillfully passing through %1 %2, making up for the shortcomings! Another problem is solved! I'll give it a try...
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023