home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!bloom-beacon!eru.mt.luth.se!lunic!sunic!news.funet.fi!fuug!mits!kennu
- From: kennu@mits.mdata.fi (Kenneth Falck)
- Newsgroups: comp.os.msdos.programmer
- Subject: Re: Another MsDos batch programming challenge
- Message-ID: <1992Sep4.213842.14734@mits.mdata.fi>
- Date: 4 Sep 92 21:38:42 GMT
- References: <israel.715477510@unixg.ubc.ca> <1992Sep3.214401.5000@uwasa.fi> <1992Sep4.032836.7299@cs.ubc.ca>
- Organization: Microdata Oy, Helsinki, Finland
- Lines: 25
-
- In article <1992Sep4.032836.7299@cs.ubc.ca> yogi@cs.ubc.ca (Yossi Gil) writes:
- >Yes, I tested it. It works. It relies on the way DOS does batch file:
- >
- > 1. Open file.
- > 2. Seek in file to current statement.
- > 3. Interpret statement.
- > 4. Close file.
- > 5. Execute statement
- > 6. Goto 1 if not done.
- >
- >This is why Batch Programming is so inefficient.
-
-
- By the way, does MSDOS store the current statement of
- a batch file as an absolute byte location from the
- beginning of the file, or perhaps as the line number
- (lines separated by CRLF's)?
-
- I began wondering about this when I accidentally edited
- a board.bat file which about 30 nodes on a network were
- currently running. (They just got some "Bad command or
- filename"'s and recycled, I think...)
-
- --
- kennu@mits.mdata.fi
-