home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.vms
- Path: sparky!uunet!inmos!inmos.co.uk!odonovan
- From: odonovan@inmos.co.uk (Brian O'Donovan)
- Subject: Re: Detecting directory of invoked .com
- Message-ID: <1992Dec24.094544.9241@inmos.co.uk>
- Sender: news@inmos.co.uk
- Reply-To: odonovan@inmos.co.uk (Brian O'Donovan)
- Organization: INMOS Limited, Bristol, UK.
- References: <1992Dec23.160636.27010@tigger.jvnc.net>
- Date: Thu, 24 Dec 1992 09:45:44 GMT
- Lines: 28
-
- In article <1992Dec23.160636.27010@tigger.jvnc.net> fogelinc@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.
- >
- [...]
- >
- >Does anyone know a method for doing this?
- >
- >- Carl
- >---------------------------------------------------------------------------
- > Carl Fogelin (fogelincc@cyanamid.com) "All opinions are strictly mine"
- > "Sushi! That's what my ex-wife called me. Cold fish." -- Blade Runner
-
-
- Hi,
-
- Try lexical function F$ENVIRONMENT with the PROCEDURE item. This will give
- you the full spec of the current procedure. Use F$PARSE to get just the
- directory part.
-
- For more information look at HELP LEX F$ENVIRONMENT (a most useful function)
- and HELP LEX F$PARSE.
-
- Cheers,
-
- 'o-Dzin / Brian (isodonovan@isnet.inmos.co.uk) Where's me sig gone now?
-