Rename file when using copyfiile

72 visualizzazioni (ultimi 30 giorni)
Marisabel Gonzalez
Marisabel Gonzalez il 18 Nov 2018
Commentato: madhan ravi il 18 Nov 2018
Hello, I would like to rename a file that I've just succesfully copied. The basic code is the following
filename = 'myfilename.dat'
source = fullfile('mysourcepath',filename)
destiantion = fullfile('mydestinationpath',filename)
copyfile(source,destination)

Risposta accettata

madhan ravi
madhan ravi il 18 Nov 2018
  4 Commenti
Marisabel Gonzalez
Marisabel Gonzalez il 18 Nov 2018
I also tried that and still got the error. However, I managed to rename it using copyfile again. Thanks anyway!
madhan ravi
madhan ravi il 18 Nov 2018
Anytime :)

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Startup and Shutdown in Help Center e File Exchange

Tag

Prodotti


Release

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by