The code at this point looks like this:
code:
IF "%USERPROFILE%"=""
$TestKey="HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ProfileReconciliation\"
$TestValue="ProfileDirectory"
$PROFILEDir=ReadValue($TestKey,$TestValue)
$USERPROFDir="$Profile"
ELSE
$USERPROFDir="%USERPROFILE%"
ENDIF
$MAPILOC=C:\scripts\OUTLOOK
COPY "$MAPILOC\OUTLOOK.PRF" "$USERPROFDir\@userid.PRF"
SHELL '$MAPILOC\PROFGEN.EXE "$MAPILOC\NEWPROF.EXE" -P "$USERPROFDir\@userid.PRF" -R -T "$USERPROFDir"'
This fails.
If you attempt to do the exact same thing in a command prompt, same effect. If you replace all of the LFNs with SFNs, it works. This is a DOS/Profgen issue, not a KIX issue.
NOTE: The reason I am using $UserProfDir for the PRF and the temp directory is to handle multiple logins on a Citrix/TS environment, to ensure the files are not overwritten by other users. (That's my attempt, anyway.)
Ed
ps: SSN-638 and SSN-751 were in my past
_________________________
{Insert your favorite Witty Tag Line here}