BCS Copy Or Move Files and Sub Directories Efficiently

There are those times when software doesn’t need to be created to accomplish a specific task. Sometimes all that is needed is mastery of plain old DOS commands.

To copy a sub directory and its contents to a new location simply requires the XCOPY command.
Open a command prompt / DOS window by entering “cmd” on the Run command line minus quotes.

Type the following command in the command prompt window.

XCOPY C:\Beginning Directory\* D:\Target Directory /s /i

Tells the command processor to copy all the files and subdirectories from the beginning directory to the target directory recursively.

Most times simple solutions are better and a great deal faster.

To facilitate a move function as opposed to the XCOPY function ender the following command in the command prompt.

DeleteTree C:\ Beginning Directory

When Enter is tapped deletion of the file contents and sub directories of C:\Beginning Directory commences.

Of course there is also an XMOVE command that as the name implies moves all the files and subdirectories from the beginning directory to the target directory.

I always like to review the result before deleting files and sub directories.

Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.