cut and paste by script (windows 7)

조회 수: 2 (최근 30일)
Thomas
Thomas 2015년 1월 29일
답변: Geoff Hayes 2015년 2월 1일
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

채택된 답변

Geoff Hayes
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개)

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by