Effacer les filtres
Effacer les filtres

How can I solve a problem when running a batch file within Matlab ?

2 vues (au cours des 30 derniers jours)
ND
ND le 1 Juin 2015
Modifié(e) : per isakson le 1 Juin 2015
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

Réponse acceptée

per isakson
per isakson le 1 Juin 2015
Try
system( fullfile( folderspec, Ab.bat ) )
  9 commentaires
per isakson
per isakson le 1 Juin 2015
Modifié(e) : per isakson le 1 Juin 2015
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
Walter Roberson
Walter Roberson le 1 Juin 2015
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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by