Microsoft MVP성태의 닷넷 이야기
오류 유형: 279. robocopy 오류 - The file cannot be accessed by the system [링크 복사], [링크+제목 복사],
조회: 15457
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 

robocopy 오류 - The file cannot be accessed by the system

Robocopy로 복사하는 데, 다음과 같은 식으로 오류가 발생했습니다.

2015/03/21 12:59:46 ERROR 1920 (0x00000780) Copying File C:\skydrive\Documents\Test.pptx
The file cannot be accessed by the system.

희한한 오류군요. ^^ 보통, 다른 프로그램에 의해 로드가 되었어도 '읽기'까지 배타적으로 여는 경우는 많지 않기 때문입니다. 설령 그렇다고 해도, 분명히 해당 파일을 잠근 프로그램이 있어야 하는데, Process Explorer로 검색해 봐도 그런 프로세스는 존재하지 않았습니다.

고민 중에, 경로의 일부가 skydrive라는 것이 눈에 들어왔습니다. 그렇군요... ^^; 바로 on-line 파일이기 때문입니다.

윈도우 8 - 스카이드라이브(skydrive)의 Online/Offline 동기화 방식
; https://www.sysnet.pe.kr/2/0/1566

따라서, robocopy를 할 때 /XD 옵션을 이용해 skydrive 폴더를 배제하거나, 아니면 "Make available offline" 옵션을 선택해 서버에 존재하는 모든 파일을 내려 받은 후에 robocopy를 실행해 주어야 합니다.




[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]







[최초 등록일: ]
[최종 수정일: 3/24/2015]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 



2015-04-09 07시32분
[Lyn] robocopy 에 Enable this program to work with OneDrive files 켜놔도 될겁니다
[guest]
2015-04-09 12시37분
@Lyn "Enable this program to work with OneDrive files" 옵션은 처음 알았군요. ^^

Windows 8.1 - What is Enable this program to work with SkyDrive files?
; http://superuser.com/questions/662376/windows-8-1-what-is-enable-this-program-to-work-with-skydrive-files

그런데, 이 옵션을 켜려면 "Compatibility" 탭이 있어야 하는데 robocopy.exe에는 그것이 제공되지 않습니다.
정성태
2015-04-09 06시02분
[Lyn] 헛.... 안뜨는 프로그램도 있군요. 조건이 뭘까요 ;
[guest]
2015-04-10 12시37분
@Lyn 아마도 말 그대로 호환이니까 적어도 마이크로소프트가 윈도우 설치시부터 제공하는 exe들이라면 호환 문제는 없을 거라 보고 없애는 .. 등의 이유가 있지 않을까 싶습니다. 같은 robocopy.exe라도 다른 폴더로 복사한 후에 속성창을 띄우면 Compatibility 탭이 보이는 데요, 어쨌든 내부적인 규칙이 있는 듯 싶은데 딱히 문서를 찾기가 힘들군요. ^^
정성태

... 61  62  63  64  65  66  67  68  69  [70]  71  72  73  74  75  ...
NoWriterDateCnt.TitleFile(s)
11892정성태5/10/201912534웹: 38. HTTP Cookie의 expires 시간 형식(RFC7231)
11891정성태5/9/201915011.NET Framework: 831. (번역글) .NET Internals Cookbook Part 12 - Memory structure, attributes, handles
11890정성태5/8/201910775개발 환경 구성: 439. "Visual Studio Enterprise is required to execute the test." 메시지와 관련된 코드 기록
11889정성태5/8/201911625개발 환경 구성: 438. mstest, QTAgent의 로그 파일 설정 방법
11888정성태5/8/201926819.NET Framework: 830. C# - 비동기 호출을 취소하는 CancellationToken의 간단한 예제 코드 [1]파일 다운로드1
11887정성태5/8/201913330.NET Framework: 829. C# - yield 문을 사용할 수 있는 메서드의 조건
11886정성태5/7/201912401오류 유형: 534. mstest.exe 실행 시 "Visual Studio Enterprise is required to execute the test." 오류 [2]
11885정성태5/7/20199381오류 유형: 533. mstest.exe 실행 시 "File extension specified '.loadtest' is not a valid test extension." 오류 발생
11884정성태5/5/201913054.NET Framework: 828. C# DLL에서 Win32 C/C++처럼 dllexport 함수를 제공하는 방법 - 두 번째 이야기
11883정성태5/3/201917363.NET Framework: 827. C# - 인터넷 시간 서버로부터 받은 시간을 윈도우에 적용하는 방법파일 다운로드1
11882정성태5/2/201914282.NET Framework: 826. (번역글) .NET Internals Cookbook Part 11 - Various C# riddles파일 다운로드1
11881정성태4/28/201914522오류 유형: 532. .NET Core 프로젝트로 마이그레이션 시 "CS0579 Duplicate 'System.Reflection.AssemblyCompanyAttribute' attribute" 오류 발생
11880정성태4/25/201911219오류 유형: 531. 이벤트 로그 오류 - Task Scheduling Error: m->NextScheduledSPRetry 1547, m->NextScheduledEvent 1547
11879정성태4/24/201916462.NET Framework: 825. (번역글) .NET Internals Cookbook Part 10 - Threads, Tasks, asynchronous code and others파일 다운로드2
11878정성태4/22/201914471.NET Framework: 824. (번역글) .NET Internals Cookbook Part 9 - Finalizers, queues, card tables and other GC stuff파일 다운로드1
11877정성태4/22/201914418.NET Framework: 823. (번역글) .NET Internals Cookbook Part 8 - C# gotchas파일 다운로드1
11876정성태4/21/201914253.NET Framework: 822. (번역글) .NET Internals Cookbook Part 7 - Word tearing, locking and others파일 다운로드1
11875정성태4/21/201914616오류 유형: 530. Visual Studo에서 .NET Core 프로젝트를 열 때 "One or more errors occurred." 오류 발생
11874정성태4/20/201914625.NET Framework: 821. (번역글) .NET Internals Cookbook Part 6 - Object internals파일 다운로드1
11873정성태4/19/201913587.NET Framework: 820. (번역글) .NET Internals Cookbook Part 5 - Methods, parameters, modifiers파일 다운로드1
11872정성태4/17/201914046.NET Framework: 819. (번역글) .NET Internals Cookbook Part 4 - Type members파일 다운로드1
11871정성태4/16/201913905.NET Framework: 818. (번역글) .NET Internals Cookbook Part 3 - Initialization tricks [3]파일 다운로드1
11870정성태4/16/201911575.NET Framework: 817. Process.Start로 실행한 콘솔 프로그램의 출력 결과를 얻는 방법파일 다운로드1
11869정성태4/15/201915421.NET Framework: 816. (번역글) .NET Internals Cookbook Part 2 - GC-related things [2]파일 다운로드2
11868정성태4/15/201913148.NET Framework: 815. CER(Constrained Execution Region)이란?파일 다운로드1
11867정성태4/15/201912175.NET Framework: 814. Critical Finalizer와 SafeHandle의 사용 의미파일 다운로드1
... 61  62  63  64  65  66  67  68  69  [70]  71  72  73  74  75  ...