xcopy

 

Copy files using operating system specific commands

%xcopy (source=source file,
                  dest=
destination file,
                  dir=
directory);
 
Where Is Type... And represents...
source file C Source file name including path to be copied.
destination file C Destination file name including path to be copied.
directory C (optional) Option for copying directories.  Valid options include:
  • yes 
  • no (default)

Details
This tool copies files using operating system commands.  It therefore has the following behavior:

  • Copied files can be of any type.  It could be a SAS produced file or any file on the operating system.
  • The source file date and time attribute are retained.
Source and destination file specifications do not require to be surrounded by quotes.  The utility will already add the double quotes for UNC paths.

Example

        %xcopy(source=c:\temp\myfile1.txt, dest=c:\temp\myfile2.txt);
 
 
     Meta-Xceed Inc.© 2007