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