You need to have administrative rights in order to copy files into most of the WINNT (sub-)directories. Also, I would alwasy specify the complete file for both he copy-from and the copy-to and do an EXIST beforehand to make sure the file actually exists.Thus:
code:
$copyfrom='\\server\share\fiel.txt'
$copyto='%WINNT%'
if exist($copyfrom)
if exist($copyto)
copy $copyfrom $copyto
if @ERROR
? 'Error copying file: '+@ERROR+' - '+@SERROR
endif
else
? 'Cannot find folder '+$copyto
endif
else
? 'Cannot find file '+$copyfrom
endif

I know it it some mmore code to just copy a file but it'll help tremendously in troubleshooting if it doesn't work.
_________________________
There are two types of vessels, submarines and targets.