cut and paste by script (windows 7)
조회 수: 2 (최근 30일)
이전 댓글 표시
i have a list of large files in matlab (subset of visual logs) and i need to move them to another folder on the same drive by script
On first attempt i used movefile, but it literally takes hour to perform (moving 800gb of data). Doing that with windows gui takes couple of seconds since its same physical drive (selecting proper files is a pain though).
What command should i use to perform cut/paste (on same physical drive) operation via script in a bearable time set?
*im using matlab 2013a
댓글 수: 0
채택된 답변
Geoff Hayes
2015년 2월 1일
Thomas - why not use the system function to execute a DOS command to move the files from one directory to another. Something like
system('move C:/source.txt C:/someFolder/');
Perhaps that will take less than the hour that you have observed with movefile.
댓글 수: 0
추가 답변 (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!