Error when I run a .bat file
Afficher commentaires plus anciens
Hello. When i try to run a .bat file from matlab, an error appears in a cmd window: "terminate called after throwing an instance of 'std::logic_error' what(): Could not find user home direct" What should I do to correct this ? PS: when I run it from the cmd window, every thing works correctly. Thanks for your help.
2 commentaires
José-Luis
le 2 Août 2017
How are you running said file?
Are you using a system() call?
Asterix Legaulois
le 2 Août 2017
Réponses (1)
ES
le 2 Août 2017
Is there any reason why you dont use
!abc.bat
or
dos('abc.bat')
1 commentaire
Asterix Legaulois
le 2 Août 2017
Catégories
En savoir plus sur File Operations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!