I use this (to read the variable 'user'):

  SetLength(result,8);
  GetEnvironmentVariable(PChar('user'),PChar(Result),8);


John Mason


Neven MacEwan wrote:
> 
> Hiya all
> 
> Does anyone know how to read DOS Environment Variables
> 
> TIA
> 
> Neven
> 
> ---------------------------------------------------------------------------
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to