FN ResetMax = ( local IsReset = false if checkForSave() do ( shellLaunch (getdir #maxroot+"\\3dsmax.exe") (maxfilepath+maxfilename) IsReset = true ) IF IsReset do quitmax #noPrompt ) ResetMax()