move
- help move
Output:
ファイルを移動およびファイルとディレクトリ名を変更します。
複数のファイルを移動するには:
MOVE [/Y | /-Y] [ドライブ:][パス]ファイル名1[,...] 受け側
ディレクトリ名を変更するには:
MOVE [/Y | /-Y] [ドライブ:][パス]ディレクトリ名1 ディレクトリ名2
[ドライブ:][パス]ファイル名1
移動するファイルの場所と名前を指定します。
受け側 ファイルの新しい場所を指定します。移動先はドライブ
文字とコロン、ディレクトリ名、または組み合わせから成
ります。1 つのファイルだけを移動する場合で、その
ファイルを移動するときに名前を変更する場合、
ファイル名を指定できます。
[ドライブ:][パス]ディレクトリ名1
変更するディレクトリ名を指定します。
ディレクトリ名2 新しいディレクトリ名を指定します。
/Y 移動先の既存のファイルを上書きする前に確認の
メッセージを表示しません。
/-Y 移動先の既存のファイルを上書きする前に確認の
メッセージを表示します。
環境変数 COPYCMD にスイッチ /Y を設定できます。これは、コマンド ラインの /-Y
で無効になります。既定では、MOVE コマンドがバッチ スクリプトから実行され
ていない場合、上書きを確認します。
Moves files and renames files and directories.
To move one or more files:
MOVE [/Y | /-Y] [drive:][path]filename1[,...] destination
To rename a directory:
MOVE [/Y | /-Y] [drive:][path]dirname1 dirname2
[drive:][path]filename1 Specifies the location and name of the file
or files you want to move.
destination Specifies the new location of the file. Destination
can consist of a drive letter and colon, a
directory name, or a combination. If you are moving
only one file, you can also include a filename if
you want to rename the file when you move it.
[drive:][path]dirname1 Specifies the directory you want to rename.
dirname2 Specifies the new name of the directory.
/Y Suppresses prompting to confirm you want to
overwrite an existing destination file.
/-Y Causes prompting to confirm you want to overwrite
an existing destination file.
The switch /Y may be present in the COPYCMD environment variable.
This may be overridden with /-Y on the command line. Default is
to prompt on overwrites unless MOVE command is being executed from
within a batch script.
Return Code: 1