From: blp01 AT uow DOT edu DOT au (Brett Porter) Newsgroups: comp.os.msdos.djgpp Subject: Re: Writing TSRs Date: Sun, 31 May 1998 09:22:14 GMT Organization: University of Wollongong, NSW, Australia. Lines: 29 Message-ID: <357120b2.3446641@news.uow.edu.au> References: <1998053103583500 DOT XAA11629 AT ladder03 DOT news DOT aol DOT com> Reply-To: blp01 AT uow DOT edu DOT au NNTP-Posting-Host: ceast15.uow.edu.au To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On 31 May 1998 03:58:35 GMT, malcolmj7 AT aol DOT com (MalcolmJ7) wrote: >Is there a way to write TSRs in DJGPP? >I used to use _dos_keep, but it's not in DJGPP. > >How do I write them in DJGPP? > Like this: char *path = getenv( "COMSPEC" ); execl( path, path, NULL ); This causes a DOS shell, with your program still loaded. There isn't any other way, the normal DOS keep function is not supported. I think this is discussed in the INFO pages, unfortunately I can't find it now that I look for it. Cheers, Brett --------------------------------------------------- Brett Porter http://members.xoom.com/brett_porter "I always like to do a first draft before being spontaneous." -- The Sandman ---------------------------------------------------