🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #1286

Re: Another MsDos batch programming challenge

#1286
From: Kenneth Falck
Date: Fri, 04 Sep 1992 21:38
25 lines
1283 bytes
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
Technical Details
Message-ID: <1992Sep4.213842.14734@mits.mdata.fi>
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!bloom-beacon!eru.mt.luth.se!lunic!sunic!news.funet.fi!fuug!mits!kennu
References: <israel.715477510@unixg.ubc.ca> <1992Sep3.214401.5000@uwasa.fi> <1992Sep4.032836.7299@cs.ubc.ca>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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