thePath holds the Windows Temp directory: var lng: DWORD; thePath: string; begin SetLength(thePath, MAX_PATH) ; lng := GetTempPath(MAX_PATH, PChar(thePath)) ;…