Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!lavaca.uh.edu!uhnix1!moray!siswat!mora7!nuchat!texbell!we!usc!snorkelwacker!tut.cis.ohio-state.edu!ucbvax!RAND.ORG!bridger%rcc From: bridger%rcc@RAND.ORG (Bridger Mitchell) Newsgroups: comp.os.cpm Subject: determining program name under CP/M PLUS Message-ID: <9001311853.AA10946wton> Date: 31 Jan 90 18:53:10 GMT References: <9001311817.AA17224@rand.org> Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 24 (Georg Wittig) mcsun >> Does there exist a standard way to determine the name of the current >> program from within a program under CP/M PLUS? If you are running Z3PLUS (the Z-System version for CP/M 3) there is a standard library function in the assembly-language Z3LIB package that will return the name of the current program. This, and the SYSLIB package, , N great aid in applications programming. If you are running only CP/M 3, the system saves the last command line in a buffer in a CP/M 3 RSX. In principle this can be located from flags and pointers in the System Control Block; there is no system call for that purpose, and I don't know of a canned routinPerhaps someone else does. The CP/M 3 archives on simtel20 include a file that has more information about the SCB than is found in the CP/M 3 manuals. It's in a library (whose name I have forgotten) devoted to a z80 replacement for the stock CP/M 3 CCP.COM, developed in Canada before Z3PLUS was available. -- bridger mitchell #! rnews 1