<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Tue, 27 Aug 1985 0946-:00PDT (Tuesday)
From   : Richard Berman <berman@isi-vaxa.ARPA>
Subject: Prgrmr nds HELP!

Hi all.  I got a question for CP/M programmers:  How can I find out the file
name of the program that was called from the CCP?  I.e., I run, a program
called, say, X5, and the first thing this program wants to find is "X5"
someplace.  This is so the program can create data files called "X5" with
different extensions, but the program name can be changed along with all the
data file names and everything will still work.

The first place I thought of was the FCB the system must have used to open the
program.  I did find it, but it is in a very machine (or implementation)
dependent location.  The challenge:  How can I do this in a CP/M-standard way
that'll work on any CP/M?  

Note: It's not in the low-memory parameter-passing buffer - that buffer starts
with the first characters AFTER the file name!  Grrrr!

HELP!!!!
Berman@ISI-VAXA
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>