0

I am using a .bat file in a Matlab program and was wondering if there was anyway to make this work on both Windows and Mac computers (right now it only works on Windows), so that I can run my Matlab program on both systems. The .bat files are quite short and simple.

1 Answer 1

5

A .Bat file is a Windows Batch file, or a series of Windows commands. Windows commands do not run on Mac.

So in short, no.

What you can do is port the batch file to something that can be run on both Operating Systems. One option for example is to install Python on both machines and write a Python Script to do the same functionality as your current Batch file.

1
  • 1
    Python should already be installed on the Mac. You'll just have to install Python on the Windows machine. May 8, 2014 at 15:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .