Moving a folder

13 vues (au cours des 30 derniers jours)
Baba
Baba le 9 Nov 2011
I'd like to move a folder one directory down. DataFolder is a variable that contains the actual name of the folder. The problem is, the code that I have below '../Datafolder' creates a folder named DataFolder and not the variable name that is stored in DataFolder
movefile(DataFolder,'../DataFolder')

Réponse acceptée

Walter Roberson
Walter Roberson le 9 Nov 2011
movefile(DataFolder,['../' DataFolder])
  1 commentaire
Baba
Baba le 9 Nov 2011
lifesaver

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Simulink dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by