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

  1. Newsgroups: comp.os.vms
  2. Path: sparky!uunet!spool.mu.edu!darwin.sura.net!jvnc.net!nmr1!fogelinc
  3. From: fogelinc@Cyanamid.COM (Carl Fogelin)
  4. Subject: Re: Detecting directory of invoked .com
  5. Message-ID: <1992Dec23.181631.29078@tigger.jvnc.net>
  6. Sender: news@tigger.jvnc.net (Zee News Genie)
  7. Nntp-Posting-Host: nmr1.pt.cyanamid.com
  8. Reply-To: fogelinc@Cyanamid.COM
  9. Organization: American Cyanamid Company
  10. Date: Wed, 23 Dec 1992 18:16:31 GMT
  11. Lines: 28
  12.  
  13. >In <1992Dec23.160636.27010@tigger.jvnc.net> fogelinc@nmr1.Cyanamid.COM writes:
  14. >
  15. >> In a DCL program, I would like to be able to determine what directory the
  16. >> invoked .com file is located in.  I seem to remember a similar thread about
  17. >> 6 - 8 months ago, so I hope someone remembers the solution.
  18. >
  19. >Try:   f$parse(f$env("procedure"),,,"directory")
  20.  
  21. This was exactly what I needed.  I'd like to thank:
  22.  
  23.     Richard Critz              critz@star.enet.dec.com
  24.     Malcolm Dunnett            dunnett@mala.bc.ca
  25.     Ulli 'Framstag' Horlacher  orakel@rz.uni-ulm.de
  26.  
  27. for their immediate help.
  28.  
  29. Ok Carl and Ehud, feel free to vilify me.  I should have seen this in TFM or $HELP.
  30.  
  31. On a related note, is there any way from within an executable to determine the
  32. name of the DCL command program which invoked said executable?  If it makes a
  33. difference, my executable was programmed in C.  Again thanks.
  34.      
  35. ---------------------------------------------------------------------------
  36.  Carl Fogelin (fogelincc@cyanamid.com)     "All opinions are strictly mine" 
  37.    "Sushi!   That's what my ex-wife called me.  Cold fish." -- Blade Runner
  38.  
  39.  
  40.  
  41.