Purpose:Copy a directory tree


Format:COPYDIR source destination


sourceThe source directory tree
destinationThe target directory tree


File Completion Syntax:


The default filename completion syntax is: dirs




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.)




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