Effacer les filtres
Effacer les filtres

Copy a file to a parent folder

1 vue (au cours des 30 derniers jours)
Jennifer Good
Jennifer Good le 10 Nov 2023
Modifié(e) : Matt J le 10 Nov 2023
I have a file in a subfolder that I want to copy and input into the parent folder. Is there a way to fun a script from inside the subfolder to copy the file up one level?

Réponses (2)

Matt J
Matt J le 10 Nov 2023
Modifié(e) : Matt J le 10 Nov 2023
Is there a way to fun a script from inside the subfolder to copy the file up one level?
Yes, but I wonder why you think the script has to reside in the subfolder. You can run copyfile from any folder A to copy a file from any other folder B to any third folder C.

the cyclist
the cyclist le 10 Nov 2023
copyfile filename ..

Catégories

En savoir plus sur File Operations dans Help Center et File Exchange

Produits


Version

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by