Purpose:Copy a directory tree

 

Format:COPYDIR source destination

 

sourceThe source directory tree
destinationThe target directory tree

 

Usage:

 

Both source and destination must be directory names. If destination does not exist, COPYDIR will create destination and copy source to destination. If destination already exists, COPYDIR will append the last subdirectory name in source to destination, create the new subdirectory, and copy source to destination. (This allows you to rename the target directory.)

 

Example:

 

To copy d:\test\mydir to x:\mydir:

 

copydir d:\test\mydir x:\

 

To copy d:\test\mydir to x:\myolddir:

 

copydir d:\test\mydir x:\myolddir