MATLAB起動時に「C:\Users\%user%AppData\Local\Temp に CD できません」とエラーが出るのはなぜですか?
11 views (last 30 days)
Show older comments
Yuichi Nishimaki
on 4 Sep 2024
Commented: Yuichi Nishimaki
on 9 Sep 2024
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)
-------------------------------------------------------------------------------------
0 Comments
Accepted Answer
Sugandhi
on 9 Sep 2024
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,
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!