I can not get my script to correctly execute the WRITEPROFILESTRING method. I am not getting any error codes, but if I check that .prf file I see that nothing has been written either. CAN SOMEONE HELP ME PLEASE?
Here is part of that code, well at least the part that contains the code:

IF @userid<>ReadProfileString($prffile,'General','ProfileName')
$rc=WriteProfileString($prffile,'General','ProfileName',@userid)
ENDIF
IF 'Yes'<>ReadProfileString($prffile,'General','DefaultProfile')
$rc=WriteProfileString($prffile,'General','DefaultProfile','Yes')
ENDIF
IF $exchangeserver<>ReadProfileString($prffile,'Service2','HomeServer')
$rc=WriteProfileString($prffile,'Service2','HomeServer',$exchangeserver)
ENDIF


Edited by hbomb6 (2004-07-02 10:22 PM)