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.

 Risposta accettata

Search for function
fileattrib
in the matlab documentation

3 Commenti

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. :)

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su MATLAB in Centro assistenza e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by