Disable mfile / model overwriting

1 次查看(过去 30 天)
Markus
Markus 2013-7-1
评论: Thomas 2025-3-12
When I try to save a model or mfile which is read-only, a dialog appears, asking me whether ML/SL should try to make files writable or not.
Since those files are under source-control, making them writable would lead to inconsistencies and is not an option.
Because some people working with those files might click the wrong option (Make Writable) in the dialog, I do not want it to appear. How can this be achieved - for both Matlab and Simulink?

回答(1 个)

Jan
Jan 2013-7-1
This is a job for the operating system: Restrict the write access for users, who are not allowed to save the file.
Unfortunately the dialog wil most like appear again, but the user is asked for a new file name.
  3 个评论
Benjamin Fishman
Benjamin Fishman 2023-6-21
I have the same need as OP. The files are cloned/checked out locally from source control as read-only. The user locks the file via source control which makes the file writable locally. I don't want Matlab/Simulink to give the dialog to force the file to be writable when it is read-only. Is this possible?
Thomas
Thomas 2025-3-12
Good afternoon everyone,
Did Mathworks provide a solution for this issue? Is there any config file that we can update to remove this option?
I do agree with the above comment that this has nothing to do with network management.
Thank you.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Simulink Environment Customization 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by