Command Prompt for Windows




Command MOVE

Function:

Moves one or more files to another location.

Syntax:

MOVE [/A | /B] source [destination] [/N] [/Q] [/V]
sourceSpecifies the file(s) to be copied.
destinationSpecifies the directory and/or filename for the new file(s).
/AIgnored.
/BIgnored.
/NUse short file name equivalents instead of long file names.
/QQuiet Mode. Only Error Messages are displayed.
/VVerifies that new files are written correctly.

Note:

All files are opened in binary mode.

The current directory is used when the parameter destination is not specified.

When moving files that have long file names from an NTFS partition to a FAT partition, that does not support long file names, the /N switch must be specified to convert the long file names to the equivalent short file names, otherwise the move operation will fail.

Also see the commands COPY, SCOPY and SMOVE.