------------
De sources van NLDDanyUtils zijn te vinden in:
ftp://ftp.nldelphi.com/public/OpenSo.../NLDDanyUtils/
------------
Deze unit bevat routines voor het behandelen van de zgn "Environment" variabelen (die dmv het ms-dos "Set" command gezet en bekeken kunnen worden).
De interface van deze unit:
Code:
procedure GetEnvironmentVars(EVars: TStrings);
// Gets all environment variables in a StringList "EVars".
// To access the different entries, one can use the "count", "names" and
// "values" properties of "TStrings".
// Also the function "GetEnvironmentVar" below can be used.
procedure GetEnvironmentVarNames(Names: TStrings);
// Gets all environment variable names (not the values) in a StringList "Names"
procedure SetEnvironmentVar(const Name, Value: string);
// Sets the (local) environment variable "Name" to the value "Value".
function GetEnvironmentVar(const Name: string): string;
// Returns the value of the (local) environment variable "Name".
function GetPATHEnvironmentVar: string; overload;
// Returns the complete "PATH" environment variable value in a string.
procedure GetPATHEnvironmentVar(Paths: TStrings); overload;
// Returns the "PATH" environment variable value in "Paths",
// each entry in "Paths" is actually one path.
Bookmarks