Movefile doesn't have access to directory

16 Ansichten (letzte 30 Tage)
Jack Walsh
Jack Walsh am 15 Jul. 2021
Kommentiert: Walter Roberson am 15 Jul. 2021
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?

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by