home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!utcsri!geac!dmntor!dciem!jorchard
- From: jorchard@dciem.dciem.dnd.ca (Jeff Orchard)
- Newsgroups: comp.sys.hp48
- Subject: Re: Running programs from other directories
- Message-ID: <6846@dciem.dciem.dnd.ca>
- Date: 16 Dec 92 14:30:14 GMT
- References: <1992Dec15.030305.3181@colorado.edu>
- Organization: Defence and Civil Institute of Environmental Medicine
- Lines: 27
-
-
- In article <1992Dec15.030305.3181@colorado.edu> hartkopf@spot.Colorado.EDU
- (Jeff Hartkopf) writes:
-
- >Does anyone know of a way to execute programs in a different directory
- >than the one the program is being run from on the HP48SX?
- ....
- >homedir - myprogdir - myprog
- > - subprogdir - subprog1
- > - subprog2
- > - subprog3
-
- In your program you can enter the directory path in a list like this...
-
- { HOME MYPROGDIR SUBPROGDIR }
-
- and the EVAL it. This will put you in the SUBPROGDIR directory. Then
- just RCL the desired program(s) to the stack and return to your previous
- directory by EVALuating the directory path...
-
- { HOME MYPROGDIR }
-
- Then if you EVAL the program on the stack it will run in the MYPROGDIR
- directory.
-
- Jeff Orchard
- jorchard@dretor.dciem.dnd
-