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

3 vues (au cours des 30 derniers jours)
雄一
雄一 le 4 Sep 2024
Commenté : 雄一 le 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)
-------------------------------------------------------------------------------------

Réponse acceptée

Sugandhi
Sugandhi le 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,
  1 commentaire
雄一
雄一 le 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.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 起動と終了 dans Help Center et File Exchange

Produits


Version

R2015a

Community Treasure Hunt

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

Start Hunting!