Copying multiple files from anywhere to current folder
4 views (last 30 days)
Show older comments
ihi every one.
i want to select multi files for example from 'desktop' and copy them to my current folder. i used this code it doesnt work. and the problem is with 'copy file' command. i would appreciate if c some could help with it.
0 Comments
Answers (1)
Mark Sherstan
on 1 Mar 2019
When I run your code I get the following error:
Error using copyfile
Cannot copy or move a file or directory onto itself.
Error in coupling (line 13)
copyfile(fullfile(path,file))
Therefore all you have to do is put your .m file into a different directory (folder) and that will fix your problem. E.g:
--- \Desktop
--- FAR.DATA
--- ECL1.INC
--- \Script
--- coupling.m
See Also
Categories
Find more on Environment and Settings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!