<p>I'm a huge fan of robocopy and use it extensively to copy between various servers I need to update.</p>

<p>Lately I've been archiving to an Amazon S3 account that I access via a mapped drive using JungleDisk.  I then robocopy my files from local PC to S3.</p>

<p>Sometimes I get a very strange 'Incorrect function' error message in robocopy and the file fails to copy.  I've tried xcopy and straightforward copy and paste between file explorer windows.  In each case I get some variation of the 'Incorrect function' or 'Illegal MS-DOS function' and the file will never copy.</p>

<p>I delete the target but to no avail.</p>

<p>Any ideas?</p>

Don't know if you're allowed to answer your own questions but I think I've fixed it...
I found this in the
jungledisk support forums
The quick solution is to zip the
  files, delete the original, then unzip
  the files because zip can't handle
  extended attributes. Another solution
  is to move them to a FAT filesystem,
  then move again to NTFS filesystem,
  because FAT don't manage extended
  attributes.
In both cases the result is the
  deletion of extended attributes, and
  the files can be moved to the
  jungledisk.
The files can have extended attributes
  for different reasons, expecially
  migrations from other filesystems: in
  my case was the migration of a CVS
  repository from a ext2 filesystem to
  NTFS.
Seems to have worked for me...