how to copy a .doc file from my desktop and save it by a different name?

1 view (last 30 days)
Hi all,
I got this word file that I need to save it multiple times with different names,please help.

Accepted Answer

KSSV
KSSV on 26 May 2016
You can use copyfile('source','destination') ; source is the file name which you want to copy into destination. You can give the information along with the fullpath.
  4 Comments
Sagi
Sagi on 26 May 2016
Edited: Sagi on 26 May 2016
let's say that the doc's name is 'DOC'- that name appears as a file name and also inside the document in it's header. Now,I want to save the doc with a different file name ,let's say 'DOC1' and I need that the name inside the document's header will change as well.
KSSV
KSSV on 27 May 2016
Sagi Till copying multiple times with different names is okay..But I have no clue on changing the header name.

Sign in to comment.

More Answers (0)

Categories

Find more on File Operations in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!