Article View: comp.os.ms-windows.programmer.misc
Article #2588Re: How do you get enviroment variables?
From: Rhoda Neimand
Date: Wed, 06 Jan 1993 22:59
Date: Wed, 06 Jan 1993 22:59
17 lines
1103 bytes
1103 bytes
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_
Technical Details
Message-ID:
<27671@sybase.sybase.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!agate!ucbvax!mtxinu!sybase!rhodaReferences:
<1993Jan3.194240.11140@exucom.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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