Change File Permission of File Created on a Unix System
9 次查看(过去 30 天)
显示 更早的评论
Hello all,
A file I am generating in MATLAB in Unix is being created with write permission to all users, but when I try to view the file on Windows, it is Read-Only.
TemplateFile = 'MyTemplate.pptx';
NewFile = 'MyNewFile.pptx';
copyfile(TemplateFile,NewFile,'f');
fileattrib(NewFile,'+w'); % set write access.
The file is generated without issue, but when I try to modify it on a windows machine, it will not let me. I have tried adding a user to the fielattrib command, but it has not been successful.
Any help is greatly appreciated!
1 个评论
Walter Roberson
2021-5-15
What kind of shared filesystem is being used?
... Or is this a dual-boot situation?
回答(1 个)
Jan
2021-5-14
Does your Windows account has write permissions in the folder?
Which error message do you see in which program? Maybe the file is password protected and the access limitation is not a problem of the file system.
3 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!