home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sunquest!spades.aces.com!gavron
- From: gavron@spades.aces.com (Ehud Gavron 602-570-2000 x. 2546)
- Newsgroups: comp.os.vms
- Subject: Re: Detecting directory of invoked .com
- Message-ID: <24DEC199213435024@spades.aces.com>
- Date: 24 Dec 92 20:43:00 GMT
- References: <1992Dec23.160636.27010@tigger.jvnc.net>
- Sender: news@sunquest.UUCP
- Reply-To: gavron@ACES.COM
- Organization: ACES Consulting Inc.
- Lines: 39
- News-Software: VAX/VMS VNEWS 1.4-b1
-
- In article <1992Dec23.160636.27010@tigger.jvnc.net>, fogelinc@Cyanamid.COM 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.
- #
- #Reason: I have a production command procedure that every once in awhile
- #must be moved to a test area for modification. Currently, when I copy the
- #com file to the test area, I comment out the assigns associated with the
- #production version and uncomment the assigns associated with the test
- #version. Unfortunately, sometimes when this command procedure is moved
- #back into production, the assigns are NOT switched back.
- #
- #What I would like is to some code to this command procedure which would:
- #
- # if command file in production area then
- # assign production logicals
- # else
- # assign test logicals
- # endif
- #
- #Does anyone know a method for doing this?
-
- Yes. Help lex f$environment (procedure), help if, help define.
-
- #
- #- Carl
- #---------------------------------------------------------------------------
- # Carl Fogelin (fogelincc@cyanamid.com) "All opinions are strictly mine"
- # "Sushi! That's what my ex-wife called me. Cold fish." -- Blade Runner
-
- Ehud
-
- --
- Ehud Gavron (EG76)
- gavron@vesta.sunquest.com
- Will it improve my CASH FLOW?
-