Error when I run a .bat file
Show older comments
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 Comments
José-Luis
on 2 Aug 2017
How are you running said file?
Are you using a system() call?
Asterix Legaulois
on 2 Aug 2017
Answers (1)
ES
on 2 Aug 2017
Is there any reason why you dont use
!abc.bat
or
dos('abc.bat')
1 Comment
Asterix Legaulois
on 2 Aug 2017
Categories
Find more on File Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!