Schedule m-files to run automaticallyCreate a script you wish to run and place it under the folder C:\Users\username\mathlayer
Open Task Scheduler and select 'Create Basic Task' from the Action panel.
Type the name of the task and an optional description.
Under 'Trigger' select the frequency of the task.
Under 'Action' click on 'Start a Program'.
Now click on 'Browser' and select the path where mathlayer.exe is located.
Add the desired script(s) as arguments.
If myscript.m is not in the default current working directory (C:\Users\username\mathlayer), change it before calling the script. In the arguments box, specify the path as following: