How to run .bat file on Mac

As you must be aware that the .bat (Batch) file are script files for DOS on Windows and are not native to macOS.

Most of the applications or programming languages (for example Java) ships both .bat and .sh files so they support both Unix-like and Windows operating system.

But if you still want to run a .bat file, then you need to install wine .


Installing wine using Homebrew

    brew install --cask wine-stable

Once you have winexe installed, you can run .bat file as follows,

wine cmd.exe /c 'script.bat'
Run .bat file on Mac using wine

Know more:

https://wiki.winehq.org/Main_Page

Comments & Discussion

Facing issues? Have questions? Post them here! We're happy to help!