Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!ut-emx!churchh From: churchh@ut-emx.uucp (Henry Churchyard) Newsgroups: comp.compression Subject: Re: Self Extracting Files Summary: in environment Message-ID: <50911@ut-emx.uucp> Date: 20 Jun 91 19:09:16 GMT References: <1991Jun19.140345.18650@bellcore.bellcore.com> <1991Jun20.060401.20338@ucunix.san.uc.edu> Followup-To: comp.os.msdos.programmer Organization: The University of Texas at Austin; Austin, Texas Lines: 18 In article <1991Jun20.060401.20338@ucunix.san.uc.edu>, bowling@ucunix.san.uc.edu (Brian D. Bowling) writes: > In article <1991Jun20.040437.11896@looking.on.ca> brad@looking.on.ca (Brad Templeton) writes: > |Without getting too doshish here, how do you find the .exe file? DOS > |doesn't tell you the name of the command you are executing. I assumed > > Look up in the PSP. The info should be stored there by DOS. Actually, the info is recorded at the end of a program's copy of the DOS environemnt in DOS versions 3.0 and above. Environment variables are stored as null terminated strings, there's an extra null after the last environment variable, and then the name of the currently executing program follows. You find the segment location of your copy of the environment at a specified place in the PSP, but I don't think the name of the program is there. Followups redirected to comp.os.msdos.programmer. -- --Henry Churchyard churchh@emx.cc.utexas.edu