Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!wuarchive!hsdndev!dartvax!mars!maine.maine.edu!io92203 From: IO92203@MAINE.MAINE.EDU (Scott Maxell) Newsgroups: comp.os.msdos.programmer Subject: Re: Batch Files Message-ID: <91146.162307IO92203@MAINE.MAINE.EDU> Date: 26 May 91 20:23:07 GMT References: <49377@ut-emx.uucp> Distribution: usa Organization: University of Maine System Lines: 21 In article <49377@ut-emx.uucp>, migdol@emx.utexas.edu (Michael A. Migdol) says: > >I'll probably get told to RTFM on this one, but here goes, anyways: Does >MS-DOS read a batch file as it's running from disk, or does it load it all >into memory at the beginning? In other words, if I have an autoexec.bat file >that loads in a new autoexec.bat file, It will try to start running the 2nd >file, right? A batch file is opened, one line is read from it, then closed, then the line is executed. If a batch file calls another batch, that line will be read, the line marker for the first file saved, then the next batch runs. After that batch file finishes executing, the first is opened again and the next line is read. //////////////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ +---------+ Scott Maxell -- Bitnet ->> IO92203 @ maine | | -- Internet ->> IO92203 @ maine.maine.edu | O | | | | "What I need is a computer that will do what I want it to +---------+ do, not what I tell it to do..."