View License

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

» Watch video

Highlights from
Copy Files in Batches using Search Terms

Be the first to rate this file! 1 Download (last 30 days) File Size: 2.96 KB File ID: #35817 Version: 1.0
image thumbnail

Copy Files in Batches using Search Terms



Copy files matching search terms, from sub-directories matching search terms into a new directory.

| Watch this File

File Information

Tristan Ursell
File accumulator
March 2012

This function is a command line program that copy all the files in a set of sub-directories whose file names match a given set of search terms, into a new directory. The new directory's name can be specified or automatically generated. The copied files will retain their old name structure, except the sub-directory name from which they originated will be appended onto the name.

Follow the command-line instructions. File name search terms can not include single quotes. Search terms preserve spaces between words, hence do not include spaces that are not there, and are case sensitive.

Required Products MATLAB
MATLAB release MATLAB 7.9 (R2009b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
23 Mar 2012 Tristan Ursell

@Jan, thanks. I 'char'-ed it just to be safe :)

Comment only
23 Mar 2012 Jan Simon

Jan Simon (view profile)

Just a small comment:
can be written as:
path_in = fullfile(path1, Dstruct(dirs(i)).name, tempnames{j})

Comment only

Contact us