I have a matlab compiled .exe file, it can run well with double-click, but when run with task scheduler, the following error pops out:
while actually I have installed the 7.17 of MCR, otherwise it will not run with double click. Anyone can help with this? Thanks a lot!
You need to include the MCR installation folder on the PATH environment variable. See here for instructions how (you might need to log off/on for it to take effect).
Note that if you are using the SET command in the command prompt, changes made are not permanent, and they would apply to the current CMD prompt only and remain only until the command prompt is closed.