home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / vms / 19875 < prev    next >
Encoding:
Internet Message Format  |  1992-12-25  |  1.3 KB

  1. Path: sparky!uunet!spool.mu.edu!wupost!waikato.ac.nz!comp.vuw.ac.nz!zl2tnm!toyunix!don
  2. Newsgroups: comp.os.vms
  3. Subject: Re: Detecting directory of invoked .com
  4. Message-ID: <20541359@zl2tnm.gen.nz>
  5. From: don@zl2tnm.gen.nz (Don Stokes)
  6. Date: 25 Dec 92 09:17:56 GMT
  7. Sender: news@zl2tnm.gen.nz (GNEWS Version 2.0 news poster.)
  8. References: <1he98mINN1o3@gap.caltech.edu>
  9. Distribution: world
  10. Organization: The Wolery
  11. Lines: 24
  12.  
  13. carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick) writes:
  14. > First:  You've got no reason to worry about being flamed.  You've clearly
  15. > stated what you want to know, and you're NOT repeating a question that's
  16. > already been answered for you in the last week or so.  If I understand your
  17. > question correctly (i.e., you want the device, too) then what you want is given
  18. > by the expression:
  19. >     $ F$ELEMENT(0,"]", F$ENVIRONMENT("PROCEDURE")) + "]"
  20.  
  21. Ummm, Carl....
  22.  
  23. (1) That's a lexical, not a command.
  24. (2) Check out what happens if the command file is invoked by:
  25.  
  26.     $ @[dir1.][dir2]commandfile
  27. or
  28.     $ @<dir>commandfile
  29.  
  30. The previous posters' use of f$parse() to get the directory & device is
  31. the best solution. 
  32.  
  33. --
  34. Don Stokes, ZL2TNM (DS555)                        don@zl2tnm.gen.nz (home)
  35. Network Manager, Computing Services Centre            don@vuw.ac.nz (work)
  36. Victoria University of Wellington, New Zealand              +64-4-495-5052
  37.