Path: utzoo!attcan!uunet!mailrus!cs.utexas.edu!asuvax!ncar!ico!ism780c!randvax!ucla-an!stb!gendep!craig Newsgroups: comp.sys.ibm.pc Subject: Re: Problem with DOS 4.01 COMMAND.COM batch files -- comments wanted Keywords: command.com environment batch crash Message-ID: Date: 7 Feb 90 03:41:47 GMT References: <405@marvin.moncam.co.uk> Organization: General Depravity 1 213 447 1543 Lines: 11 > | You can crash the system if a batch file line expands to over 127 character Well, I don't know what's causing that crash for certain, but just imagine -- what if DOS is really trying to expand the command line and ACCCIDENTALLY OVER-WRITING THE FIRST FEW INSTRUCTIONS OF THE PROGRAM IT'S ABOUT TO EXECUTE! The command line lives just below the start of the program's code, after all; there's only room for 128 bytes (actually 126, since DOS always ends the command line with your carriage return, and you lose one up front for the length byte). How's that for a recipe for a crash?