home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / os2 / programm / 6517 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  2.3 KB

  1. Path: sparky!uunet!vnet.ibm.com
  2. From: peterf@vnet.ibm.com (Peter Forsberg)
  3. Message-ID: <19921117.230525.290@almaden.ibm.com>
  4. Date: Wed, 18 Nov 92 07:53:52 SWE
  5. Newsgroups: comp.os.os2.programmer
  6. Subject: Re: setting global environment vars in REXX
  7. Reply-To: peterf@vnet.ibm.com
  8. Organization: IBM Corporation
  9. Disclaimer: This posting represents the poster's views, not those of IBM
  10. News-Software: UReply 3.0
  11. References: <exujlg.173.0@exu.ericsson.se>
  12. Lines: 37
  13.  
  14. In <exujlg.173.0@exu.ericsson.se> Jon L. Gauthier, EXU/IS/TP, Rm B-65, MS B-07, 997-0157 writes:
  15. >I'm new to programming in OS/2, so please bear with me.
  16. >
  17. >I'm trying to create a Lan Manager login script for OS/2 workstations on our
  18. >network that sets some global environment variables.  I can create local
  19. >vars with the VALUE function, but I need to add drives to the PATH, DPATH,
  20. >and LIBPATH variables (is it possible to add to LIBPATH, since it's not an
  21. >environment variable?).
  22. >
  23. >Any pointers would be appreciated.
  24. >
  25. >Regards,
  26. >------------------------------------------------------------------------------
  27. >Jon L. Gauthier                                 Ericsson Network Systems, Inc
  28. >EXU/IS/TP Systems Programmer                                  P.O. Box 833875
  29. >+1 214 997-0157                                     Richardson, TX 75083-3875
  30. >
  31. >e-mail:  exujlg@exu.ericsson.se, exu.exujlg@memo.ericsson.se
  32. >Geez!  Can I be a .com, huh? huh?  Aw, pleeeaaasssse?
  33. >------------------------------------------------------------------------------
  34. >
  35.  
  36. I'm no REXX-guru, but I do know one thing (which isn't REXX-related anyway),
  37. and that is that LIBPATH is impossible to change with less than a change to
  38. CONFIG.SYS followed by an IPL. The best you could do is probably to put some
  39. "generic" entries in LIBPATH (e.g. ../DLL;/DLL;./DLL; ...), and make sure
  40. these are valid on all drives. Agreed, this is not at all as flexible as it
  41. would be to be able to update LIBPATH dynamically.
  42. As for changing PATH and DPATH, couldn't you try
  43.   'PATH x:/mydir/bin;%PATH%'
  44. (doesn't ' ' address the command processor, CMD.EXE?)
  45.  
  46. Peter
  47. --
  48. Peter Forsberg           E-mail:  peterf@vnet.ibm.com          (primary)
  49.                                   d88-pfo@nada.kth.se        (alternate)
  50. Disclaimer: This posting represents the poster's views, not those of IBM
  51.