这是我的批量内容
Robocopy.exe D:\IDRIVE\New backups\Program\full\1 D:\IDRIVE\New backups\Program\full\2
pause
但在cmd中显示
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : Mon Apr 21 15:24:47 2014
Source - D:\IDRIVE\New\
Dest - D:\IDRIVE\New backups\Program\full\backups\Program\full\2\
Files :
Options : /COPY:DAT /R:1000000 /W:30
------------------------------------------------------------------------------
ERROR : Invalid Parameter #3 : "D:\IDRIVE\New"
Simple Usage :: ROBOCOPY source destination /MIR
source :: Source Directory (drive:\path or \\server\share\path).
destination :: Destination Dir (drive:\path or \\server\share\path).
/MIR :: Mirror a complete directory tree.
For more usage information run ROBOCOPY /?
**** /MIR can DELETE files as well as copy them !
D:\IDRIVE\New backups\Program\full>pause
Press any key to continue . . .
请帮我解决这个问题
答案 0 :(得分:5)
您需要引用带空格的路径:
Robocopy.exe "D:\IDRIVE\New backups\Program\full\1" "D:\IDRIVE\New backups\Program\full\2"
如果查看错误消息,您将看到所提到的路径在新的位置停止,这位于第一个空格之前。