Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Moving files using command prompt
How to move files in the Windows command line (MS-DOS)
move stats.doc c:\statistics
If you'd like to move multiple files, you can separate the file names with a comma, as in the following command.
move stats.doc, morestats.doc c:\statistics
In the next example, we are moving the file "example.doc" to the D:\ drive.
move example.doc d:\
You can also move multiple files by using wildcards. In the example below, the move command is moving all files that have the ".doc" file extension to the "c:\statistics" directory.
move *.doc c:\statistics
Using the move command, you can also move a directory (folder). In the example below, the move command is moving the directory "example" in the current directory to another directory called "new" that is also in the current directory.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.