home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!news.claremont.edu!nntp-server.caltech.edu!SOL1.GPS.CALTECH.EDU!CARL
- From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick)
- Newsgroups: comp.os.vms
- Subject: Re: Detecting directory of invoked .com
- Date: 25 Dec 1992 06:21:10 GMT
- Organization: HST Wide Field/Planetary Camera
- Lines: 27
- Distribution: world
- Message-ID: <1he98mINN1o3@gap.caltech.edu>
- References: <1992Dec23.160636.27010@tigger.jvnc.net>
- Reply-To: carl@SOL1.GPS.CALTECH.EDU
- NNTP-Posting-Host: sol1.gps.caltech.edu
-
- In article <1992Dec23.160636.27010@tigger.jvnc.net>, fogelinc@nmr1.Cyanamid.COM (Carl Fogelin) writes:
- >At the risk of being flamed by the "active" participants of this Sig, I have
- >a problem which I hope has a reasonable answer.
- >
- >In a DCL program, I would like to be able to determine what directory the
- >invoked .com file is located in. I seem to remember a similar thread about
- >6 - 8 months ago, so I hope someone remembers the solution.
-
- First: You've got no reason to worry about being flamed. You've clearly
- stated what you want to know, and you're NOT repeating a question that's
- already been answered for you in the last week or so. If I understand your
- question correctly (i.e., you want the device, too) then what you want is given
- by the expression:
- $ F$ELEMENT(0,"]", F$ENVIRONMENT("PROCEDURE")) + "]"
- See the results of
- $ HELP LEX F$ENVIRONMENT
- and
- $ HELP LEX F$ELEMENT
- for details.
- --------------------------------------------------------------------------------
- Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL
-
- Disclaimer: Hey, I understand VAXen and VMS. That's what I get paid for. My
- understanding of astronomy is purely at the amateur level (or below). So
- unless what I'm saying is directly related to VAX/VMS, don't hold me or my
- organization responsible for it. If it IS related to VAX/VMS, you can try to
- hold me responsible for it, but my organization had nothing to do with it.
-