Run COMSOL Multiphysics Using an Input File From a Command Prompt

How to run COMSOL Multiphysics using an input file and a command prompt. It is easy using the Java API.