I think that in dos, a call by direct reference is a transfer, and there will be no return.
You should be able to reference with a "call" statement, like "call newsub", which will result in a return to the calling routine after the called batch file is completed. --- Halász Sándor Viktor <[EMAIL PROTECTED]> wrote: > >>>> 2008/05/23 14:20 +0200, Michael Reichenbach > >>>> > 2) When I call from within autoexec.bat to test.bat > file then after > test.bat is done it won`t jump back to autoexec.bat, > also if exit is the > last command. > <<<<<<<< > It is a weakness of DOS batch files that such code > does not return: > given A.BAT, > > B > dir > > and B.BAT, > > cd .. > > , the "B" in A.BAT is enough to start B.BAT, but A > is _replaced_, not > suspended. To suspend it is needful to use "CALL": > > call B > dir > > . > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio > 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Freedos-user mailing list > Freedos-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freedos-user > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user