What is the difference between a function and a subroutine? The subroutine originally is simply a repeatable snippet of code which you can call in between other code It originates in Assembly or Machine language programming and designates the instruction sequence itself
Subroutines in batch files - Stack Overflow Just to stick my $0 02 worth in here: I would have to say that DOS files (or DOS batch files) should always be written as : [ Main Program ] EXIT [ All Subroutines ] In this way - you can never fall into the subroutine section Also - always use REM statements before, during, and possibly after each section so you always know what a section is going to do And last - but not least - See if you