Path: utzoo!attcan!uunet!husc6!brutus.cs.uiuc.edu!usc!srhqla!nrcvax!kosman!kevin From: kevin@kosman.UUCP (Kevin O'Gorman) Newsgroups: comp.sys.ibm.pc Subject: Changing stack size in a .EXE file Message-ID: <1026@kosman.UUCP> Date: 25 Nov 89 00:52:04 GMT Organization: K.O.'s Manor - Vital Computer Systems, Oxnard, CA 93035 Lines: 15 I have a need to enlarge the stack for an existing .EXE file. I understand that if I had any MS language, I would have EXEMOD.EXE, which does this sort of thing. Unfortunately, I don't and I don't. The need arises because I have a *lot* of SET commands in AUTOEXEC.BAT, setting up the environment for various tools that I use, and this silly program loads the whole environment into the stack rather than extracting what it needs. Thus, I need to give it a bigger stack. I have the feeling that this is pretty easy to do, and I'm comfortable writing a program (in Turbo C) or doing binary patches by hand. I just don't know what to modify. I can't quite convince myself that I understand all the fields in the EXE header. Could someone who understands these things enlighten me?