




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???