Change a read-only file to writable

Hello everyone, I used 'copyfile' to copy an Excel file to current folder, because the source file is read-only, so the destination is read-only too. But I want 'writable', how to do that? Thanks.

 Accepted Answer

Search for function
fileattrib
in the matlab documentation

3 Comments

Use it after 'copyfile'
Done! Thank you very much.
Tip: Whenever going through the help of any function, also look at the 'See Also' section at the end of the page. It contains link to function help of the related context. :)

Sign in to comment.

More Answers (0)

Categories

Find more on MATLAB 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!