home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / amiga / programm / 19038 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.8 KB  |  55 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!gatech!concert!sas!mozart.unx.sas.com!jamie
  3. From: jamie@cdevil.unx.sas.com (James Cooper)
  4. Subject: Re: system call to get AmigaDos PATH string(s) ?
  5. Originator: jamie@cdevil.unx.sas.com
  6. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  7. Message-ID: <C181M3.GvF@unx.sas.com>
  8. Date: Thu, 21 Jan 1993 20:44:27 GMT
  9. References: <1993Jan17.230704.27737@philips.oz.au> <paulk.3cz7@terapin.com> <51604@shamash.cdc.com>
  10. Nntp-Posting-Host: cdevil.unx.sas.com
  11. Organization: SAS Institute Inc.
  12. Lines: 41
  13.  
  14.  
  15. In article <51604@shamash.cdc.com>, app@shamash.cdc.com (CDII Advanced Pkg/Processes) writes:
  16. >In article <paulk.3cz7@terapin.com> paulk@terapin.com (Paul Kienitz) writes:
  17. >>> system call to get AmigaDos PATH string(s) ?
  18. >>
  19. >>> One klugey way is :-
  20. >>>
  21. >>> Execute ("PATH >T:file", 0L,0L);
  22. >>>
  23. >>> then parse T:file.
  24. >>>
  25. >>> But there's got to be a neater way.
  26. >
  27. >Speaking of the Execute command, why does something like this NOT work?:
  28. >
  29. >       Execute ("Path Sys:Utilities Add", 0,0);
  30. >
  31. >Does the path info get assigned somewhere other than the current CLI?  
  32.  
  33. Yes.  Execute is creating a background process, the Path is added to that proc
  34. only, then it goes away == no change to the current CLI.
  35.  
  36. >Is
  37. >there a way to set the path for all CLI's with AmigaDos1.3?
  38.  
  39. No, not without either editing your Startup-Sequence, or mucking around in
  40. private areas of the system - not recommended.
  41.  
  42. >I'll need to check again to be sure, but I don't think Stack works with the
  43. >Execute command either.  What gives?
  44.  
  45. Same thing - the stack is only set in the background process, not in the current
  46. one.
  47.  
  48. -- 
  49. ---------------
  50. Jim Cooper
  51. (jamie@unx.sas.com)                             bix: jcooper
  52.  
  53. Any opinions expressed herein are mine (Mine, all mine!  Ha, ha, ha!),
  54. and not necessarily those of my employer.
  55.