home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / mswindo / programm / misc / 4730 < prev    next >
Encoding:
Internet Message Format  |  1993-01-07  |  1.0 KB

  1. Path: sparky!uunet!spool.mu.edu!agate!ucbvax!mtxinu!sybase!rhoda
  2. From: rhoda@sybase.com (Rhoda Neimand)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Re: How do you get enviroment variables?
  5. Message-ID: <27671@sybase.sybase.com>
  6. Date: 6 Jan 93 22:59:59 GMT
  7. References: <1993Jan3.194240.11140@exucom.com>
  8. Sender: news@Sybase.COM
  9. Organization: Sybase, Inc.
  10. Lines: 17
  11.  
  12. In article <1993Jan3.194240.11140@exucom.com> bobw@exucom.com (Bob Willer) writes:
  13. >How do you get the enviroment variables that are used by the system
  14. >with the SET command ie. in the autoexec.bat file ?
  15. >
  16. >Bob Willer
  17.  
  18. Try GetDOSEnvironment(), a windows sdk routine.  There is an article in
  19. the windows knowledgbase titled "Retrieving DOS Environment Variables
  20. from a Windows DLL" that shows GetDOSEnvironment() in action.  Altho,
  21. it's not too tough and can be figured out from the sdk online help or
  22. ref manual.
  23.  
  24.  
  25. --
  26. Rhoda Neimand                            [I speak for myself]
  27. {sun,lll-tis,pyramid,pacbell}!sybase!rhoda -or- rhoda@sybase.com
  28. "I didn't want to, Jim"        Mr. Spock in _This Side Of Paradise_
  29.