1 つ以上のファイルを 1 つのディレクトリから別のディレクトリに移動します。
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\