If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Welcome to Mac-Forums! Join us to comment and to customize your site experience! Members have access to different forum appearance options, and many more functions.

How will I run a *.bat files in Mac?
I am not at all a Mac Savvy, Would highly appreciate, If any one can provide me with the step by step instruction to execute bat files in Mac.PFB the contents of my bat files

Code:

echo
Running ConfigureTests.py to get the selections regarding the test cases to be executed
ConfigureTests.py
echo Now, the configurations are saved to TestConfig.txt file.
echo Please ensure that squishserver is running before starting the automated testing
echo To start squishserver cd to the squish bin folder in a separate command prompt window and then type squishserver Example: "cd I:\squish-4.0.2-qt47x-win32-msvc8\bin\ and then squishserver"
runTests.py
echo Please check I:\Test Results\index.html to examine the Test Execution Report

Start CrossOver, if it's not already running
Menu Bar -> Programs -> Run Command...
Select the bottle to use - for you this would be the bottle you're installing the game in
Click Browse and find your BAT file
Click Run

I cant guarantee anything that it will work, but from what i have read, the best and easiest way is to run a VM or Bootcamp for Windows and executing a .bat file, especially if your trying to get it into a game.

Dont forget to use the Reputation System if someone has helped you out !!!Arguing with a zealot is only slightly easier than tunneling through a mountain with your forehead!!!!!MoTM☆☆☆

Let's further assume that you need to do a task that consists of several steps, each with very specific instructions.

Now, someone hands you directions for that task and they are written in.... you guessed it... English. That's not going to work, will it?

That's what you're looking at here. .bat files are MS-DOS batch files. OS X, being based on UNIX, has no idea what to do with a .bat file. And just as you can't change the name of the English instructions mentioned above and have it understandable in Chinese, you can't simply change the extension on the .bat file and have it recognized by OS X.

That said, there are many different ways to script automated solutions with OS X. The easiest of which is Automator, which is built right into OS X (look in your Applications folder). There is also AppleScript. And if for whatever reason, you want to delve even deeper into scripting, there you can do shell scripting. An excellent guide is available here.

What you need to do next is to decipher that .bat file and find out what it actually does. Break it out into vey basic steps. Then, translate those actions into your scripting solution of choice, depending on which is most appropriate.

Hope that makes sense.

Liquid and computers don't mix. It might seem simple, but we see an incredible amount of people post here about spills. Keep drinks and other liquids away from your expensive electronics!

However, this will do nothing for you for a couple of reasons. You need this Squishserver to be available on OS X. If you don't have that, you cannot proceed. You might have to modify the two python scripts minimally to set the correct path to the Python interpreter..

Open up the Terminal (Applications->Utilities->Terminal) and type

Code:

which python

This should return a valid path name as opposed to just returning with no output. If you get a valid path, then that's the path you want to use in your python scripts..