function [s,r]=dosCopy(from,to,echo)
% dosCopy <Use dos to copy files>
% Usage:: [status,result]=dosCopy(from,to,echo[false])
%

% revision history:
% 05/07/96 Mark D. Shattuck <mds> dosCopy.m

%% Parse Input
if(~exist('echo','var') || isempty(echo))
	echo=false;
end

%% Main
if (echo)
  [s,r]=dos(sprintf('copy %s %s',from,to),'-echo');
else
  [s,r]=dos(sprintf('copy %s %s',from,to));
end
