- you can system() a DOS or Powershell command to change the attributes for you
- you can try to find an ActiveX control that can make the changes for you, and connect to it using actxserver
- you can find .NET controls that can make the changes for you; this might involve using NET.addAssembly
- You can use .NET System.Diagnostics.Process to run a process that will change the attributes for you
How can I change file and folder permissions in an app running in MATLAB Runtime?
조회 수: 10 (최근 30일)
이전 댓글 표시
I made an app including fileattrib function compiled by MATLAB compiler, but that function did not work on MATLAB Runtime. Could you tell me how to change file and folder permission on MATLAB Runtime?
댓글 수: 0
답변 (1개)
Walter Roberson
2023년 11월 21일
댓글 수: 2
Walter Roberson
2023년 11월 22일
On MacOS, you can system() a call to chmod -- though sometimes you might need to go as far as to use xattr
You might also be interested in using coder.ceval : https://www.mathworks.com/help/coder/ug/call-cc-code-from-matlab-code.html
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!