home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.vms
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!jvnc.net!nmr1!fogelinc
- From: fogelinc@nmr1.Cyanamid.COM (Carl Fogelin)
- Subject: Detecting directory of invoked .com
- Message-ID: <1992Dec23.160636.27010@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 16:06:36 GMT
- Lines: 28
-
- 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?
-
- - Carl
- ---------------------------------------------------------------------------
- Carl Fogelin (fogelincc@cyanamid.com) "All opinions are strictly mine"
- "Sushi! That's what my ex-wife called me. Cold fish." -- Blade Runner
-