필터 지우기
필터 지우기

Copying multiple files from anywhere to current folder

조회 수: 3 (최근 30일)
ali mohebi
ali mohebi 2019년 3월 1일
댓글: ali mohebi 2019년 3월 1일
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.

답변 (1개)

Mark Sherstan
Mark Sherstan 2019년 3월 1일
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
  댓글 수: 1
ali mohebi
ali mohebi 2019년 3월 1일
the thing i know is there is something wrong woth c'copyfile '. when i run it it says; argument must contain a character vector

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by