2014-07-21 2 views
4

robocopy에 문제가 있습니다. 시스템 디스크를 백업하는 데이 디스크를 사용하고 일부 시스템 폴더를 제외하려고합니다. 그러나 여전히이 폴더 중 일부를 복사하려고합니다. 내 배치 파일은 이것이다 : 나는 많은 것들을 시도했지만, 아무것도 도움이되지Robocopy - 많은 디렉터리 제외

robocopy c:\ l:\C\ /r:1 /w:1 /mir /dcopy:T /xjd /xjf /xj /copy:DT /log+: l:\RobocopyLogC.txt /xf "desktop.ini" /xd "$Recycle.Bin" /xd Config.Msi /xd MSOCache/xd Recovery /xd "System Volume Information" /xd Windows /xd "Program Files\Common Files" /xd "Program Files\Internet Explorer" /xd "Program Files\Reference Assemblies" /xd "Program Files\Uninstall Information" /xd "Program Files\Microsoft Analysis Services" /xd "Program Files\Microsoft Mouse and Keyboard Center" /xd "Program Files\Microsoft Office" /xd "Program Files\Microsoft Silverlight" /xd "Program Files\MSBuild" /xd "Program Files\Windows Defender" /xd "Program Files\Windows Journal" /xd "Program Files\Windows Mail" /xd "Program Files\Windows Media Player" /xd "Program Files\Windows Multimedia Platform" /xd "Program Files\Windows NT" /xd "Program Files\Windows Photo Viewer" /xd "Program Files\Windows Portable Devices" /xd "Program Files\Windows Sidebar" /xd "Program Files\WindowsApps" /xd "Program Files\WindowsPowerShell" /xd "Program Files (x86)\Common Files" /xd "Program Files (x86)\InstallShield Installation Information" /xd "Program Files (x86)\Internet Explorer" /xd "Program Files (x86)\Microsoft Analysis Services" /xd "Program Files (x86)\Microsoft Office" /xd "Program Files (x86)\Microsoft Silverlight" /xd "Program Files (x86)\Microsoft.NET" /xd "Program Files (x86)\MSBuild" /xd "Program Files (x86)\Reference Assemblies" /xd "Program Files (x86)\Temp" /xd "Program Files (x86)\Windows Defender" /xd "Program Files (x86)\Windows Mail" /xd "Program Files (x86)\Windows Media Player" /xd "Program Files (x86)\Windows Multimedia Platform" /xd "Program Files (x86)\Windows NT" /xd "Program Files (x86)\Windows Photo Viewer" /xd "Program Files (x86)\Windows Portable Devices" /xd "Program Files (x86)\WindowsPowerShell" /xd "Program Files (x86)\Windows Sidebar" /xd ProgramData\Microsoft /xd "ProgramData\Microsoft Help" /xd "ProgramData\Package Cache" /xd Users\Public /xd Users\Default /xd Users\userName2 /xd Users\userName\AppData\LocalLow\Temp /xd Users\userName\AppData\Local\Temp 

. 나 좀 도와 줄 수있어?

답변

5

다중/xd!를 (를) 사용하지 마십시오! 첫 번째/XD

... /xd "dir1" "dir2" "dir3" ... 
0

/xd 옵션 뒤에 그냥 설정 모든 디렉토리는 상대 경로로 잘 작동 표시되지 않습니다.

robocopy c:\ l:\C\ /r:1 /w:1 /mir /dcopy:T /xjd /xjf /xj /copy:DT ... 
    /xd "C:\$Recycle.Bin" 
    /xd C:\Config.Msi 
    /xd C:\MSOCache 
    /xd C:\Recovery 
    /xd "C:\System Volume Information" 

(읽기 쉽도록 분할.) 예를 들어, 대신에 절대 경로를 사용하십시오

+0

난 그냥 XD 어떤 ".."경로에 전혀 작동하지 않습니다/것으로 나타났습니다. – Sake

+0

@Sake, 놀랍지는 않습니다. –