I use this function and do'nt receive the same result.
===
Under win2000 it return the temp directory of the user c:\documents and setting .....
Under Win XP it return c:\windows\temp
How to return the temp directory of the user with WinXp .
#include "FiveWin.ch"
function Main()
local cValue := Space( 256 )
MsgInfo( GetEnv( "TEMP" ) )
GetEnvironmentVariable( "TEMP", cValue, Len( cValue ) )
MsgInfo( cValue )
return nil
DLL32 FUNCTION GetEnvironmentVariable( cName AS LPSTR, cValue AS LPSTR, nLen AS LONG ) ;
AS LONG PASCAL FROM "GetEnvironmentVariableA" LIB "kernel32.dll"
Return to FiveWin for CA-Clipper
Users browsing this forum: No registered users and 7 guests