How to rename file from command prompt

11 visualizzazioni (ultimi 30 giorni)
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 Commenti
Jan
Jan il 14 Dic 2011
@Daniel: I agree. Therefore I've voted your answer.
I immediately send an enhancement request.
jonathan
jonathan il 11 Set 2017
Modificato: jonathan il 20 Ott 2017
When you want to escape asks for ftp server always use Batch Rename Files Tool. You can easily found hier BatchRenameFiles.org

Accedi per commentare.

Risposta accettata

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

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by