Skip to content

Instantly share code, notes, and snippets.

@abhishekdagarit
Created November 26, 2018 09:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhishekdagarit/22cd922b1983a1d2a4dfd419347afc72 to your computer and use it in GitHub Desktop.
Save abhishekdagarit/22cd922b1983a1d2a4dfd419347afc72 to your computer and use it in GitHub Desktop.
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