How to rename file from command prompt

3 views (last 30 days)
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
Jan
Jan on 14 Dec 2011
@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

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

Sign in to comment.

More Answers (0)

Categories

Find more on Search Path in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!