Movefile access is denied error

3 次查看(过去 30 天)
Erin
Erin 2013-4-11
I have many images that have no file extension saved in the folder RTL04-UR19-C8. Ideally I want to move many files that contain the string NUI into a sub folder called AllNUI.
Originally I tried: >> cd('\\Biomech-10\j') >> movefile('RTL04-UR19-C8/*NUI*','../RTL04-UR19-C8/AllNUI'); ??? Error using ==> movefile Unknown error occurred.
Since there was not a lot of guidance with this error, I tried to move a single image, and included the full directory:
>> movefile('RTL04-UR19-C8/00001_NUI_FITC_RTL04-UR19-C8','../RTL04-UR19-C8/AllNUI'); ??? Error using ==> movefile Access is denied.
Also I really want to enter the RTL04-UR19-C8 folder as the current directory as little as possible because there are so many images java has a timing error. Any advice?

回答(1 个)

Babak
Babak 2013-4-11
MATLAB has opened to write to file and hasn't closed them... Exit MATLAB then try moving/deleting the files.

类别

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