pman
asked on
how to get environment variables in delphi3
How can I get the environment variables (e.g.: PATH or USERNAME) in a Delphi3-program ??? What is the function therfor?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
..Wouldn't it be nice to now, which variables were available?
/Williams
/Williams
That was not the question I think? Williams
I know, that's why I asked pman. Maybe he didn't know it was possible :-)
Relax Martijn ..You answered his question, so you well enough deserve the credits!
/Williams
Relax Martijn ..You answered his question, so you well enough deserve the credits!
/Williams
how to use the function:
type SET in a dosbox to find out the names of the EnvVars
Lets say you want the username:
var UserName : String;
UserName:=GetEnvVar('USERN
Good Luck