home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.vms
- Path: sparky!uunet!munnari.oz.au!metro!tango.cchs.su.oz.au!brennan
- From: brennan@tango.cchs.su.oz.au (Luke Brennan)
- Subject: Re: Detecting directory of invoked .com
- Message-ID: <1992Dec24.192033.1@tango.cchs.su.oz.au>
- Sender: news@ucc.su.OZ.AU
- Nntp-Posting-Host: tango.cchs.su.oz.au
- Organization: Cumberland College of Health Sciences
- References: <1992Dec23.160636.27010@tigger.jvnc.net>
- Date: Thu, 24 Dec 1992 19:10:33 GMT
- Lines: 27
-
- 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.
-
- heh heh.. *SOME* people are still risking a post, eh? *BRAVE* !!
-
- > 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.
-
- I suppose there are other ways to do it, but I usually do something
- like this:
-
- procedure = f$environment("PROCEDURE")
- proc_dir = f$parse(procedure,,,"DIRECTORY","SYNTAX_ONLY")
-
- same deal for proc_dev, etc..
-
- not exactly obvious - even when you *DO* RTFM...
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- + Luke Brennan e-mail: brennan@cchs.su.oz.AU +
- + EDP Unit, S209 brennan%cchs.su.oz.au@cunyvm.BITNET +
- + Cumberland College of Health Sciences, ,-_|\ +
- + The University of Sydney voice: +61 2 646 6402 / \ +
- + East Street, Lidcombe, NSW 2141 fax: +61 2 646 4853 \_,-._* +
- + AUSTRALIA v +
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-