다음을 통해 공유


move

한 디렉터리에서 하나 이상의 파일을 다른 디렉터리로 이동합니다.

Important

암호화된 파일을 EFS(파일 시스템 암호화)를 지원하지 않는 볼륨으로 옮기면 오류가 발생합니다. 먼저 파일의 암호를 해독하거나 EFS를 지원하는 볼륨으로 파일을 옮겨야 합니다.

Syntax

move [{/y|-y}] [<source>] [<target>]

Parameters

Parameter Description
/y 기존 대상 파일을 덮어쓸 것인지 묻는 확인 메시지를 표시하지 않습니다. 이 매개변수는 COPYCMD 환경 변수에 미리 설정되어 있을 수 있습니다. You can override this preset by using the -y parameter. 기본값은 배치 스크립트 내에서 명령을 실행하지 않는 한 파일을 덮어쓰기 전에 메시지를 표시하는 것입니다.
-y 기존 대상 파일을 덮어쓸 것인지 확인하는 메시지를 표시하기 시작합니다.
<source> 이동할 파일의 경로와 이름을 지정합니다. To move or rename a directory, the source should be the current directory path and name.
<target> 경로 파일을 이동 하는 이름을 지정 합니다. To move or rename a directory, the target should be the desired directory path and name.
/? 명령 프롬프트에 도움말을 표시합니다.

Examples

To move all files with the .xls extension from the \Data directory to the \Second_Q\Reports directory, type:

move \data\*.xls \second_q\reports\