Free programming examples and instructions

HOW TO : Move a File or Folder in Basic DOS Commands

How to move a file using dos command


Posted on 07 Aug 2017 Category: DOS Views: 308

Edited on 07 Aug 2017

Syntax for moving a file or folder using dos command


This step-by-step article describes how to move a file or folder to another folder.

Just begin first with open up command prompt. Also, have to locate ourselves the directory to where the file is at (Can change the directory by using the command ‘cd’ with the desired location or the source file location ).Then type


This is the basic DOS command to move a file from a location to the another location.

Let us go through an example, consider that there is a folder named as Example which is located on the desktop in the C: drive and have to move the folder to the D drive. To move the Example folder from the C drive to the D drive, have to execute the following command in the command prompt. 

 Example for moving a file or folder using DOS command

C:\Users\Admin\Desktop>move Example D: 

where 'Example' is a folder
After executing the above command will get a successful message and successfully finished the operation. 

Leave a Comment: