フィルターのクリア

How can I change file and folder permissions in an app running in MATLAB Runtime?

10 ビュー (過去 30 日間)
雅人 萩原
雅人 萩原 2023 年 11 月 21 日
コメント済み: Walter Roberson 2023 年 11 月 22 日
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?

回答 (1 件)

Walter Roberson
Walter Roberson 2023 年 11 月 21 日
  • 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
  2 件のコメント
雅人 萩原
雅人 萩原 2023 年 11 月 22 日
Thank you for anser my question. I'm sorry for lack of infomation. I use MATLAB and MATLAB Runtime on mac. Are there any solution of my probrem on mac platform?
Walter Roberson
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 ExchangeMATLAB Compiler についてさらに検索

タグ

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by