Filter löschen
Filter löschen

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

35 Ansichten (letzte 30 Tage)
Yuichi Nishimaki
Yuichi Nishimaki am 4 Sep. 2024
Kommentiert: Yuichi Nishimaki am 9 Sep. 2024 um 10:18
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 um 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 Kommentar
Yuichi Nishimaki
Yuichi Nishimaki am 9 Sep. 2024 um 10:18
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 Help Center und File Exchange

Produkte


Version

R2015a

Community Treasure Hunt

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

Start Hunting!