フィルターのクリア

Simulink error: Cannot CD to...(Name is nonexistent or not a directory)

8 ビュー (過去 30 日間)
Liu
Liu 2012 年 12 月 1 日
コメント済み: tmsilva2 2018 年 7 月 16 日
Recently, I installed the MATLAB R2012b, but met a problem.
When I tried to open(there existed a button showing Open this Example) the model Simulation of a Bouncing Ball in the General Applications of the Simulink Examples, I even cannot open the model, the command lines showed that Cannot CD to C:\Users\123\AppData\Local\Temp (Name is nonexistent or not a directory). I did not know what happened, and what caused such things.
But when I opened the example Switching an Inductive Circuit Using a Breaker With no Snubber in the SimPowerSystems, the example can be opened, but when I tried to run the example, it didn't work, giving me a dialog box, showing Error in 'power_breaker/ 50V 60 Hz': Initialization commands cannot be evaluated. Caused by:Cannot CD to C:\Users\123\AppData\Local\Temp (Name is nonexistent or not a directory).
So here hoping to get a good result.
  2 件のコメント
Daniel Pereira
Daniel Pereira 2013 年 4 月 23 日
Having the same problem. Did you find any solution?
Kaustubha Govind
Kaustubha Govind 2013 年 4 月 23 日
What is your system TEMP environment variable set to? Is it set to the path in the error message?

サインインしてコメントする。

回答 (4 件)

bo
bo 2016 年 3 月 1 日
I think it maybe because your user in the Windows does not have a Administrator right. I met the same problem, and then I right click the shortcut of Matlab in my desktop and clicked "Run as Administrator", the error message is gone. I think you can have a try.
  3 件のコメント
Priteem Behera
Priteem Behera 2017 年 6 月 29 日
This worked for me. Thank You.
tmsilva2
tmsilva2 2018 年 7 月 16 日
Had the same issue. This soln also worked for me. Thanks

サインインしてコメントする。


Gnaneswar Nadh satapathi
Gnaneswar Nadh satapathi 2013 年 11 月 6 日
Right-click My Computer, and then click Properties. Click the Advanced tab. Click Environment Variables. Click the TMP variable, and then click Edit. Edit all instances of the TMP and TEMP environment variables so that they point to a valid folder to which you have access. Click OK, and then close all the open dialog boxes. Verify that the folder that you are using for the TMP and TEMP environment variables is accessible and has enough free space.
  2 件のコメント
Gnaneswar Nadh satapathi
Gnaneswar Nadh satapathi 2013 年 11 月 6 日
temp file in the C DIRECTORY of the path must be given full access control by right clicking the folder. and going to security and give full access, any of them will work
Shady N
Shady N 2014 年 3 月 23 日
編集済み: Shady N 2014 年 3 月 24 日
Dear Gnaneswar,
I had the same error. I changed the TMP and TEMP multiple times and then it workes for a while (day, some hours) after which it starts to give the same error again. I'm confused. Any solutions?
R2014a, Windows 8.1 64bit

サインインしてコメントする。


ankit rupareliya
ankit rupareliya 2014 年 12 月 17 日
Write %temp% in search window after windows key Then right click on the temp folder and then change in the properties with full access.

jozef jozefi
jozef jozefi 2016 年 7 月 12 日
temp file in the C DIRECTORY of the path must be given full access control by right clicking the folder. and going to security and give full access, I had this problem with matlab 2015 in win 8.1 i do that & solution my problem.
for run temp file win key +R= Run %temp% file adrees: C:\Users\user\AppData\Local\Temp

カテゴリ

Help Center および File ExchangeGeneral Applications についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by