movefile
파일 또는 폴더를 이동하거나 이름 변경
구문
설명
movefile 은 source destinationsource를 파일 또는 폴더 destination으로 이동합니다. source와 destination이 같은 위치에 있는 경우 movefile은 source를 destination으로 이름을 바꿉니다. 파일 또는 폴더를 이동할 때 이름을 바꾸려면 destination을 source와 다른 이름으로 지정하고 source에 파일 또는 폴더를 한 개만 지정하십시오.
source가 폴더이면 destination은 폴더여야 합니다. source가 폴더이거나, 여러 파일을 지정할 수 있는데 destination이 존재하지 않는 경우 movefile은 destination을 만듭니다.
movefile 는 source destination fdestination이 쓰기 불가능일 때도 이동을 수행합니다. destination에 대한 읽기/쓰기 특성의 상태는 변경되지 않습니다. 이 구문은 읽기 전용 파일을 재지정합니다.
movefile(는 기호화된 링크를 이동할지 아니면 이 링크의 대상을 이동할지 여부를 지정합니다. (R2024b 이후)source,destination,MoveLinkBehavior=slbehavior)
예제
입력 인수
출력 인수
팁
이 함수는 Microsoft® Windows® 바로 가기 파일(
.lnk)을 지원합니다.