Andre...

quote:

when whe copy this file in the command prompt by using dos syntaxes then it can be copied into .java without any problems.

Maybe then a shell command would work?

code:
 
shell '%comspec% /c COPY "source" "destination"'