필터 지우기
필터 지우기

Error using cd Cannot CD to C:\Users\P​roduct\Con​trol\suppo​rt (Name is nonexistent or not a directory).

조회 수: 7 (최근 30일)
Hello,
When I'm trying to run my .m file, I'm getting this error,
Error using cd Cannot CD to C:\Users\Product\Control\support (Name is nonexistent or not a directory).
I think, the directory path is right but still getting error.
Any solution?

답변 (2개)

Steven Lord
Steven Lord 2023년 7월 18일
I think, the directory path is right but still getting error.
I would double check that the directory to which you're trying to cd does exist. Use Windows Explorer to try to navigate to that directory; I suspect you'll find that either it doesn't exist or perhaps that you don't have permissions to access it.

Mrutyunjaya Hiremath
Mrutyunjaya Hiremath 2023년 7월 18일
if path is correct "C:\Users\Product\Control\support", then it works
cd 'C:\Users\Product\Control\support'
  댓글 수: 1
Tejas
Tejas 2023년 7월 18일
이동: Fangjun Jiang 2024년 3월 24일
I see, thanks for your feedbacks. Whenever MATLAB gave suggestion regarding the right directory path, I was selecting add to the path and getting the same error, that's weird!! but I changed the folder and seems that error gone.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Search Path에 대해 자세히 알아보기

태그

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by