home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / vms / 19792 < prev    next >
Encoding:
Text File  |  1992-12-23  |  1.2 KB  |  30 lines

  1. Newsgroups: comp.os.vms
  2. Path: sparky!uunet!haven.umd.edu!decuac!pa.dec.com!e2big.mko.dec.com!nntpd.lkg.dec.com!star.enet.dec.com!critz
  3. From: critz@star.enet.dec.com (Richard Critz)
  4. Subject: Re: Detecting directory of invoked .com 
  5. Message-ID: <1992Dec23.163434.635@nntpd.lkg.dec.com>
  6. Lines: 17
  7. Sender: usenet@nntpd.lkg.dec.com (USENET News System)
  8. Reply-To: critz@star.enet.dec.com (Richard Critz)
  9. Organization: Digital Equipment Corporation, Nashua, NH
  10. References:  <1992Dec23.160636.27010@tigger.jvnc.net>
  11. Date: Wed, 23 Dec 1992 16:34:34 GMT
  12.  
  13.  
  14. In article <1992Dec23.160636.27010@tigger.jvnc.net> you write:
  15. |>
  16. |>In a DCL program, I would like to be able to determine what directory the
  17. |>invoked .com file is located in.  I seem to remember a similar thread about
  18. |>6 - 8 months ago, so I hope someone remembers the solution.
  19. |>
  20.  
  21. f$parse(f$environment("procedure"),,,"directory","syntax_only")
  22.  
  23. should work nicely.
  24.  
  25. --
  26. -----------------------------------------------------------------------------
  27. Richard Critz                          critz@star.enet.dec.com
  28.       -- I speak only for myself; I make no commitments for Digital. --
  29. -----------------------------------------------------------------------------
  30.