Newsgroups: comp.os.msdos.programmer Path: utzoo!utgpu!watserv1!sunee!erick From: erick@sunee.waterloo.edu (Erick Engelke) Subject: Re: Batch Files Message-ID: <1991May23.214550.16647@sunee.waterloo.edu> Organization: University of Waterloo References: <49377@ut-emx.uucp> Date: Thu, 23 May 1991 21:45:50 GMT Lines: 20 In article <49377@ut-emx.uucp> migdol@emx.utexas.edu (Michael A. Migdol) writes: >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? > >Thanks in advance! > It will once again open the file, seek to the position assumed to be the next line and try to read the command. If you wish to change the batch file, make certain you change it AFTER your current position or else you start getting problems. -- ---------------------------------------------------------------------------- Erick Engelke Watstar Computer Network Watstar Network Guy University of Waterloo Erick@Development.Watstar.UWaterloo.ca (519) 885-1211 Ext. 2965