Saves the workspace and closes all open files.
This command saves the full path names, the cursor positions, and other settings of all currently open documents in EmEditor, then closes all open documents. This command is equivalent to the Save Workspace command followed by the Close All command.
editor.ExecuteCommandByID(4332);
editor.ExecuteCommandByID 4332
Send feedback on this topic to Emurasoft