Using Batch File on COMSOL

Please login with a confirmed email address before reporting spam

Hello, I am running COMSOL 6.1 and am attempting to run a series of time dependent heat transfer studies using a batch file in the command window. It seems to recognize the batch file, but it gives following error: 'comsolbatch' is not recognized as an internal or external command, operable program or batch file.

The batch file contains the following:

comsolbatch -inputfile Test1.mph -outputfile Test1_solved.mph comsolbatch -inputfile Test2.mph -outputfile Test2_solved.mph

Any help would be appreciated. Thanks.


1 Reply Last Post 1 nov 2023, 20:51 GMT-4
Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 6 months ago 1 nov 2023, 20:51 GMT-4
Updated: 6 months ago 2 nov 2023, 08:29 GMT-4

Hi Amari,

You need to add the path to the COMSOL executables to the Windows path environment variable. See the blog post dated December 20, 2016 for more info on this topic.

Jeff

-------------------
Jeff Hiller
Hi Amari, You need to add the path to the COMSOL executables to the Windows path environment variable. See the [blog post](https://www.comsol.com/blogs/how-to-run-simulations-in-batch-mode-from-the-command-line/) dated December 20, 2016 for more info on this topic. Jeff

Reply

Please read the discussion forum rules before posting.

Please log in to post a reply.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.