What does this do for you?:

;--- start of script ---
$windir=ExpandEvironmentVars('%windir%')
$profile=ExpandEnvironmentVars('%userprofile%')

copy '$windir\outlook.prf' '$profile'
;--- end of script ---

If that doesn't work either try to see if the variables are resolved correctly, by doing something like this:

;--- start of script ---
$windir=ExpandEvironmentVars('%windir%')
$profile=ExpandEnvironmentVars('%userprofile%')

CLS
? 'windir = >'+$windir+'<'
? 'profile = >'+$profile+'<'
get $dummy
;--- end of script ---

good luck!
_________________________
The Code is out there