Movefile doesn't have access to directory

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?

 Respuesta aceptada

Walter Roberson
Walter Roberson el 15 de Jul. de 2021
movefile -f abc.txt xyz.txt

2 comentarios

>> cd 'C:\Users\Jack Walsh\Downloads'
>> movefile -f abc.txt xyz.txt
Error using movefile
'xyz.txt' is an invalid option.
movefile abc.txt xyz.txt f

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Large Files and Big Data en Centro de ayuda y File Exchange.

Productos

Versión

R2021a

Etiquetas

Preguntada:

el 15 de Jul. de 2021

Comentada:

el 15 de Jul. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by