[fpc-pascal] SysUtils.GetEnvironmentVariable
    Sven Barth 
    pascaldragon at googlemail.com
       
    Thu Mar 29 13:19:03 CEST 2012
    
    
  
Am 29.03.2012 13:16, schrieb Mattias Gaertner:
>
> Marcos Douglas <md at delfire.net> hat am 29. März 2012 um 13:06 geschrieben:
>
>  >[...]> > === output end ===
>  > >
>  > > Please note that in "cmd" the following are different:
>  > >
>  > > set FOO=bar
>  > > => "FOO" -> "bar"
>  > > set FOO = bar
>  > > => "FOO " -> " bar"
>  > > set FOO= bar
>  > > => "FOO" -> " bar"
>  > > set FOO =bar
>  > > => "FOO " -> "bar"
>  > >
>  > > Regards,
>  > > Sven
>  >
>  > The application is installed and the system variable is created. The
>  > application and others process should be use this variable just
>  > calling SysUtils.GetEnvironmentVariable.
>
> In former Windows versions sometimes you had to logout/login to get the
> new environment variables.
>
> Is this still the case with Windows 7?
At least for "per user" environment variables it should work without. 
And according to a quick test it works with system ones as well.
Regards,
Sven
    
    
More information about the fpc-pascal
mailing list