Home > utility > myCopyFile.m

myCopyFile

PURPOSE ^

SYNOPSIS ^

function myCopyFile(source, target)

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function myCopyFile(source, target)
0002 
0003 source=strrep(source, '/', '\');
0004 target=strrep(target, '/', '\');
0005 cmd = sprintf('copy /y "%s" "%s"', source, target);
0006 [status, result]=dos(cmd);    % Avoid stdout on screen
0007 
0008 % Why can i use copyfile(source, target, 'f') instead???

Generated on Tue 01-Jun-2010 09:50:34 by m2html © 2003