When the MAXScript rollout is first opened, MAXScript searches for the file startup.ms, the startup script file. It searches the scripts directory first and then the directories specified in the Windows PATH environment variable. If it finds the script, MAXScript loads and executes it using the fileIn function. You can use this mechanism to set up the MAX environment, such as:
In a future release, there will be a facility for this file to be loaded when MAX itself starts, which would allow you to run a series of commands automatically without interacting with the MAX user interface, much like a batch file.
MAXScript currently ships with a startup.ms file that contains a set of useful functions and scripted utility rollouts.