home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / hp48 / 6342 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  1.2 KB

  1. Path: sparky!uunet!utcsri!geac!dmntor!dciem!jorchard
  2. From: jorchard@dciem.dciem.dnd.ca (Jeff Orchard)
  3. Newsgroups: comp.sys.hp48
  4. Subject: Re: Running programs from other directories
  5. Message-ID: <6846@dciem.dciem.dnd.ca>
  6. Date: 16 Dec 92 14:30:14 GMT
  7. References: <1992Dec15.030305.3181@colorado.edu>
  8. Organization: Defence and Civil Institute of Environmental Medicine
  9. Lines: 27
  10.  
  11.  
  12. In article <1992Dec15.030305.3181@colorado.edu> hartkopf@spot.Colorado.EDU
  13. (Jeff Hartkopf) writes:
  14.  
  15. >Does anyone know of a way to execute programs in a different directory
  16. >than the one the program is being run from on the HP48SX?
  17. ....
  18. >homedir - myprogdir - myprog
  19. >                    - subprogdir - subprog1
  20. >                                 - subprog2
  21. >                                 - subprog3
  22.  
  23. In your program you can enter the directory path in a list like this...
  24.  
  25.     { HOME MYPROGDIR SUBPROGDIR }
  26.  
  27. and the EVAL it.  This will put you in the SUBPROGDIR directory.  Then
  28. just RCL the desired program(s) to the stack and return to your previous
  29. directory by EVALuating the directory path...
  30.  
  31.     { HOME MYPROGDIR }
  32.  
  33. Then if you EVAL the program on the stack it will run in the MYPROGDIR
  34. directory.
  35.  
  36. Jeff Orchard
  37. jorchard@dretor.dciem.dnd
  38.