Francois Piette wrote: >> Please see my previous post, I use it but.. obviously you have to >> check the result, because on my system it randomly returns one item >> that is not a valid name/value pair i.e. "=::=::\". > > You have not shown your code. The environment string is terminated by a > double-nul byte. Here is another code I use in a CGI and never saw > failing: [..] > Can you check on your system and see if it gives bad data ?
Your procedure behaves the same. First try, and first item shows "=::=::\". =::=::\<BR> ALLUSERSPROFILE=C:\Dokumente und Einstellungen\All Users<BR> APPDATA=C:\Dokumente und Einstellungen\Icke\Anwendungsdaten<BR> CommonProgramFiles=C:\Programme\Gemeinsame Dateien<BR> COMPUTERNAME=blah<BR> ComSpec=C:\WINNT\system32\cmd.exe<BR> DELPHI=D:\D7<BR> HOMEDRIVE=C:<BR> HOMEPATH=\Dokumente und Einstellungen\Icke<BR> LOGONSERVER=\\blahblah<BR> NUMBER_OF_PROCESSORS=1<BR> OS=Windows_NT<BR> Os2LibPath=C:\WINNT\system32\os2\dll;<BR> Path=D:\D7\Bin;[snip]<BR> PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH<BR> PROCESSOR_ARCHITECTURE=x86<BR> PROCESSOR_IDENTIFIER=x86 Family 6 Model 4 Stepping 2, AuthenticAMD<BR> PROCESSOR_LEVEL=6<BR> PROCESSOR_REVISION=0402<BR> ProgramFiles=C:\Programme<BR> SystemDrive=C:<BR> SystemRoot=C:\WINNT<BR> TEMP=C:\DOKUME~1\Icke\LOKALE~2\Temp<BR> TMP=C:\DOKUME~1\Icke\LOKALE~2\Temp<BR> USERDOMAIN=blah<BR> USERNAME=Icke<BR> USERPROFILE=C:\Dokumente und Einstellungen\Icke<BR> windir=C:\WINNT<BR> Arno Garrels _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

