Clear Filters
Clear Filters

MATLAB起動時に​「C:\Users\​%user%AppD​ata\Local\​Temp に CD できません」とエラーが出るのはなぜですか?

35 views (last 30 days)
MATLAB起動時に「C:\Users\%user%AppData\Local\Temp に CD できません」とエラーが出るのはなぜですか?
本来なら%user%とAppDataの間に「\」があるべきだと思いますが、それがないため存在しないフォルダにアクセスしようとしています。
MATLABを再インストールしても発生します。
mdlファイルを開く時も同様のエラーが発生します。
初期作業フォルダ―を特定のフォルダに指定してもエラーが発生します。
おなじライセンスでR2020b、R2021aを使用していますが、このエラーは発生しません。
起動時のエラーメッセージ
------------------------------------------------------------------------------------------------------------
エラー: cd
C:\Users\%user%AppData\Local\Temp に CD できません (Name is nonexistent or not a directory)。
エラー: tempdir (line 30)
curr_dir = cd(tmp_dir);
エラー: findLogStream (line 13)
エラー: setupConnector>localDisableConsoleLogging (line 42)
エラー: setupConnector (line 30)
エラー: performConnectorAction>startService (line 105)
エラー: performConnectorAction (line 13)
エラー: connectorHandler>performAction (line 69)
エラー: connectorHandler (line 28)
エラー: connector (line 10)
connectorHandler(action, varargin{:});
エラー: connector.internal.autostart.run (line 10)
-------------------------------------------------------------------------------------

Accepted Answer

Sugandhi
Sugandhi on 9 Sep 2024 at 9:03
Hello Yuichi,
The error "Cannot CD to C:\Users\%user%AppData\Local\Temp" usually indicates an issue with environment variables. Ensure `TEMP` and `TMP` are set to `C:\Users\<YourUsername>\AppData\Local\Temp` with correct backslashes.
Best regards,
  1 Comment
Yuichi Nishimaki
Yuichi Nishimaki on 9 Sep 2024 at 10:18
Hi,
I set correct path "C:\Users\%user%\AppData\Local\Temp" as environment variables.
It is resolved.
Thank you for the comment.

Sign in to comment.

More Answers (0)

Categories

Find more on ビッグ データの処理 in Help Center and File Exchange

Products


Release

R2015a

Community Treasure Hunt

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

Start Hunting!