Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!ames!mailrus!iuvax!rutgers!bellcore!wind!thf From: thf@wind.bellcore.com (Theodore Feyler) Newsgroups: comp.binaries.ibm.pc.d Subject: Writing TSRs Message-ID: <11499@bellcore.bellcore.com> Date: 1 Nov 88 23:10:05 GMT Sender: news@bellcore.bellcore.com Reply-To: thf@wind.UUCP (Theodore Feyler) Organization: Bellcore, Morristown, NJ Lines: 21 Hey there, With all this talk about changing the switch character in dos so that it appears more like UN*X I got to wondering..... What I want is a program that, like UNCLE, changes all occurences of the slash character on the command line to a back slash character. I would use UNCLE, but it also changes the back slash to the slash which makes things worse for me. BUTTTTT, I don't know how to write a TSR. I have MS C 5.1 on a ibm ps/2 model 50. I am a C programmer by trade (and religion), but this is my first attempt at PC type programming. The MS C Run Time Library Reference discusses the system call 0x31 and the function _dos_keep() which will exit the program leaving it in memory. I don't get it. If you're gonna exit the progarm, how can it do anything after the system call statement? Any help would certainly be appreciated. Thanks in advance, ted P.S. If anyone has the MS C source (or partial source) for a TSR that they could mail me - it would be perfect.