move file to folder
조회 수: 9 (최근 30일)
이전 댓글 표시
i want function to move file on any dir in my pc to folder at any dir in my pc
댓글 수: 0
채택된 답변
Radha Krishna Maddukuri
2015년 3월 9일
Hi Ahmed,
movefile('source','destination')
moves the file or folder named source to the location destination, where source and destination are the absolute or relative paths for the folder or file.
For further information regarding this command, please visit the following documentation page.
댓글 수: 3
Nathaniel Werner
2018년 1월 23일
편집: Nathaniel Werner
2018년 1월 23일
I am trying to do something similar. My code is
movefile filename folderNew
but I get the following error...
Error using movefile
No matching files were found.
I've checked and the file with name 'filename' is in my current folder.
Jan
2018년 1월 23일
@Nathaniel Werner: Do you really want to move the file called 'filename' to a folder called 'folderNew' or are they file names? The non-functional form of commands can be confusing. Prefer the functional form with parentheses:
movefile(filename, folderNew)
% Or
movefile('FileName.txt', 'NameOfNewFolder')
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 File Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!