How to rename file from command prompt

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 Comments

Whenever a problem with a command occurs, read the documentation: "help rename".
@Jan, while I agree in principal, in this case help rename doesn't quite get you to move file or even help if you don't know what ftp is.
@Daniel: I agree. Therefore I've voted your answer.
I immediately send an enhancement request.
jonathan
jonathan on 11 Sep 2017
Edited: jonathan on 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

Sign in to comment.

 Accepted Answer

doc movefile
movefile('SW984-362-19-230-vXYZ.doc', 'SW984-362-19-230-W1234.5.doc');

1 Comment

Thanks Daniel ,
It is exactly working as expected.
Thanks again !!
Sameer

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!