How can I solve a problem when running a batch file within Matlab ?
이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
오류 발생
페이지가 변경되었기 때문에 동작을 완료할 수 없습니다. 업데이트된 상태를 보려면 페이지를 다시 불러오십시오.
이전 댓글 표시
I am trying to run Abaqus from Matlab using a .bat file, but I have received an error message : 'Ab.bat' is not recognized as an internal or external command, operable program or batch file. I tried to use (mex -setup) command but still have this error? I have (Intel Visual Fortran Composer XE 2013 SP1 with Microsoft Visual Studio 2012 on my PC).
Many thanks
채택된 답변
per isakson
2015년 6월 1일
Try
system( fullfile( folderspec, Ab.bat ) )
댓글 수: 9
it dose not work? Given the same error.
per isakson
2015년 6월 1일
편집: per isakson
2015년 6월 1일
I can only guess why you see this error. Does Ab.bat run in the cmd-window? Try
c:\> "d:\full\path\to\Ab.bat"
If that does run copy&paste the command string to matlab
system( '"d:\full\path\to\Ab.bat"' )
and it should work.
it works in one PC while still have error in the second while I am using the same command!
As Ab.bat present on both machines and installed in the same location?
Yes, I am using it with the same location.
per isakson
2015년 6월 1일
편집: per isakson
2015년 6월 1일
Does Ab.bat run properly in the Command Prompt Window of both machines? If not, what does
c:\> where ab.bat
return?
C:\Temp>echo off 'Abaqus' is not recognized as an internal or external command, operable program or batch file.
ans =
0
In c:\> return ....is not recognized as ..... In the second one runs OK
per isakson
2015년 6월 1일
편집: per isakson
2015년 6월 1일
I don't understand exactly what you tried, but to me it seems obvious that Ab.bat and/or Abacus are not properly installed on the first machine. It's not a Matlab problem. Did you try
c:\> where Ab.bat
On the second one it will have given a file name with directory. Look in the same directory on the first one and verify that Ab.bat is present there. Tell your Windows Explorer to show file extensions so that you can verify that it has not become (for example) Ab.bat.doc or Ab.txt
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
