Date : Mon, 29 Jan 1990 15:23:41 GMT
From : mcsun!unido!gmdzi!wittig@uunet.uu.net (Georg Wittig)
Subject: program name under CP/M
Does there exist a standard way to determine the name of the current program
from within a program under CP/M PLUS?
For example, if my program is in file TEST.COM on drive b, does there exist a
CALL 5 or a specific address where I can find the string B:TEST.COM? The
FCB-Format would be acceptable, too.
And if I rename the program (without changing it), say to FOO.BAR, then I would
like to get the string B:FOO.BAR in the program.
I couldn't find a CALL 5 entry, nor do the addresses 0H - 0FFH contain that
information on my CP/M PLUS machine. :-|
But there *must* be a way to determine it, because the CCP displays the last
command (program) executed when I type Control-W. Where is the pointer to that
text?
Any ideas?
--
Georg Wittig GMD-Z1.BI P.O. Box 1240 D-5205 St. Augustin 1 (West Germany)
email: wittig@gmdzi.uucp phone: (+49 2241) 14-2294
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Freedom's just another word for nothing left to lose" (Kris Kristofferson)