home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.vms
- Path: sparky!uunet!spool.mu.edu!darwin.sura.net!jvnc.net!nmr1!fogelinc
- From: fogelinc@Cyanamid.COM (Carl Fogelin)
- Subject: Re: Detecting directory of invoked .com
- Message-ID: <1992Dec23.181631.29078@tigger.jvnc.net>
- Sender: news@tigger.jvnc.net (Zee News Genie)
- Nntp-Posting-Host: nmr1.pt.cyanamid.com
- Reply-To: fogelinc@Cyanamid.COM
- Organization: American Cyanamid Company
- Date: Wed, 23 Dec 1992 18:16:31 GMT
- Lines: 28
-
- >In <1992Dec23.160636.27010@tigger.jvnc.net> fogelinc@nmr1.Cyanamid.COM writes:
- >
- >> 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.
- >
- >Try: f$parse(f$env("procedure"),,,"directory")
-
- This was exactly what I needed. I'd like to thank:
-
- Richard Critz critz@star.enet.dec.com
- Malcolm Dunnett dunnett@mala.bc.ca
- Ulli 'Framstag' Horlacher orakel@rz.uni-ulm.de
-
- for their immediate help.
-
- Ok Carl and Ehud, feel free to vilify me. I should have seen this in TFM or $HELP.
-
- On a related note, is there any way from within an executable to determine the
- name of the DCL command program which invoked said executable? If it makes a
- difference, my executable was programmed in C. Again thanks.
-
- ---------------------------------------------------------------------------
- Carl Fogelin (fogelincc@cyanamid.com) "All opinions are strictly mine"
- "Sushi! That's what my ex-wife called me. Cold fish." -- Blade Runner
-
-
-
-