Movefile doesn't have access to directory

6 次查看(过去 30 天)
I'm trying to rename a file, and no matter what I try MATLAB won't let me.
>> cd 'C:\Users\Jack Walsh\Downloads'
>> movefile abc.txt xyz.txt
Error using movefile
Cannot write to destination: C:\Users\Jack Walsh\Downloads. Use the 'f' option to override.
What can allow me to write to the Downloads folder?

采纳的回答

Walter Roberson
Walter Roberson 2021-7-15
movefile -f abc.txt xyz.txt
  2 个评论
Jack Walsh
Jack Walsh 2021-7-15
>> cd 'C:\Users\Jack Walsh\Downloads'
>> movefile -f abc.txt xyz.txt
Error using movefile
'xyz.txt' is an invalid option.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by