File Exchange

image thumbnail


version 1.0 (4.79 KB) by

Simple wrapper to XCOPY function for backing up folders. Changes the file archive attributes and ca

1 Download


View License

This is a wrapper to the XCOPY commnand, with the four different modes:

prune -updates backup dir and delete files on the back up dir that do not exist on the original dir.

find -find unique files in backup dir

arch -set archive attb. to ON for files on the original dir that do not exist on the backup dir.

sync -updates BOTH directories with the newest files from EITHER directory.

Options that can be set for the XCOPY command are listed at and on the help for this function:

Comments and Ratings (1)


Wade (view profile)

The functionality of this function is exactly what I was looking for. Contains a lot of low-level options. Seems very robust.


Fixed minor issues and added three more modes (find, arch, and sync).

Fixed minor issues and added three functionalities:

'find' -finds unique files between directories
'arch' -set the archive attribute to ON on files from unique files

'sync' -updtes both directories with most recent files from both.

MATLAB Release
MATLAB 7.0.1 (R14SP1)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Win prizes and improve your MATLAB skills

Play today