How to rename file from command prompt

12 vues (au cours des 30 derniers jours)
Sameer Kumthekar
Sameer Kumthekar le 14 Déc 2011
Modifié(e) : jonathan le 20 Oct 2017
Hi,
I have a file named 'SW984-362-19-230-vXYZ.doc'. I want to rename it as 'SW984-362-19-230-W1234.5.doc'.
I tried using rername function. But it asks for ftp server.I am not sure which ftp server i should use. Can anyone please suggest me how to do it using some script or from command prompt?
Thanks in advance !!
Sameer
  4 commentaires
Jan
Jan le 14 Déc 2011
@Daniel: I agree. Therefore I've voted your answer.
I immediately send an enhancement request.
jonathan
jonathan le 11 Sep 2017
Modifié(e) : jonathan le 20 Oct 2017
When you want to escape asks for ftp server always use Batch Rename Files Tool. You can easily found hier BatchRenameFiles.org

Connectez-vous pour commenter.

Réponse acceptée

Daniel Shub
Daniel Shub le 14 Déc 2011
doc movefile
movefile('SW984-362-19-230-vXYZ.doc', 'SW984-362-19-230-W1234.5.doc');
  1 commentaire
Sameer Kumthekar
Sameer Kumthekar le 14 Déc 2011
Thanks Daniel ,
It is exactly working as expected.
Thanks again !!
Sameer

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with MATLAB 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