I am trying to complete my batch script but under certain circumstances it fails.
This is the command I am running:
ROBOCOPY "C:\test\dash2\Hello - 4\" "C:\test\dash2\Hello - 4\..\" /MOV
And this is the error I am getting
------------------------------------------------------------------------------- ROBOCOPY :: Robust File Copy for Windows ------------------------------------------------------------------------------- Started : Mon May 11 01:28:46 2015 Source - C:\test\dash2\Hello - 4" C:\test\dash2\Hello\ Dest - Files : Options : /COPY:DAT /R:1000000 /W:30 ------------------------------------------------------------------------------ ERROR : Invalid Parameter #2 : "-"
I do surround my source and destination by double quotes. But according to the ROBOCOPY log the source and dest seems to be wrong
EDIT
It seems that it thinks the space is a separator, so it treats the "-" as the second parameter.