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

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)
-------------------------------------------------------------------------------------

 Akzeptierte Antwort

Sugandhi
Sugandhi am 9 Sep. 2024

0 Stimmen

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 Kommentar

雄一
雄一 am 9 Sep. 2024
Hi,
I set correct path "C:\Users\%user%\AppData\Local\Temp" as environment variables.
It is resolved.
Thank you for the comment.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu 起動と終了 finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2015a

Gefragt:

am 4 Sep. 2024

Kommentiert:

am 9 Sep. 2024

Community Treasure Hunt

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

Start Hunting!