10 CALLING ROUTINES AND BAT FILES
In the previous chapter, I introduced labels and nonsequential execution, both of which also play a major part in this chapter. I’ll soon introduce a new twist on an already discussed command, allowing you to create and call a routine defined by a label. Instead of simply handing control over to the code just after the label, control is returned to the place from where it was called after the routine executes. As you write more complex and interesting bat files, you’ll want a full understanding of routines.
In Chapter 8, I introduced the concept of calling executables compiled in other languages. I’ll expand ...
Get The Book of Batch Scripting now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.