opening .bat files on my mac

A couple of months ago, i installed a windows application to my mac via crossover. However, it quickly became outdated and needs to be patched, but the patch uses a .bat (batch) file. Seeing that i do not have and will not buy a copy of windows, nor run an emulator, i am out of ideas. I have tried running it through Terminal, but permission was denied; the file did not allow me to execute it. I also tried to convert it via Applescript, but that did not work either (maybe it is an error with how i tried to script it, but everything seemed okay). If someone could help me with the script, or tell me how to open the file, that would be great.
thanks in advance.

MacBook 2.4 Ghz, 2 gigs ram, integrated graphics, Mac OS X (10.5.5)

Posted on Feb 14, 2009 4:43 PM

Reply
4 replies

Feb 15, 2009 4:36 AM in response to attekiller

Hi,

normally a .bat file is only a 'text'-file in which a set of instructions is defined that run at the 'Command Prompt' of Windows (and Windows only).

Since you are using Crossover and the main application seems to work within Crossover, the .bat file should work as well in Crossover.

Look at the Crossover manual to find out how to run a .bat file in Crossover.

Since neither Applescript nor Terminal nor OSX itself can handle the 'bottle' concept of Crossover, trying to translate a .bat file or using it outside of Crossover won't work.

Regards

Stefan

Feb 15, 2009 6:06 AM in response to Fortuny

Hey Stefan,

Like you said, the batch file is only text file, therefore Crossover does not recognize it. I know that if i re-wrote the entire file in Applescript, it would probably work, but i have absolutely no idea how to do that.

Terminal seemed to work, but when i told it to execute, it said that I did not have the permission to do so, even though I am the root administrator. I selected the bat file and went file> get info to change the permission, but it said i could only read and write, not execute it. Does this mean that I cannot use terminal to open this?

thanks

Feb 15, 2009 7:11 AM in response to attekiller

Hi attekiller,

Terminal seemed to work, but when i told it to execute, it said that I did not have the permission to do so, even though I am the root administrator. I selected the bat file and went file> get info to change the permission, but it said i could only read and write, not execute it. Does this mean that I cannot use terminal to open this?


Terminal refuses to execute the file as a precaution, since it can not execute the instructions included in the file.
Read+Write only means that you can 'edit' the text file, but Terminal (and OSX) have no way to execute the Windows System Calls in it.

I have Crossover lying around since the LameDuck day but haven't had the time to 'play' with it.

As said you have to execute the batch file while you are in Crossover Windows, so maybe when you import/copy the .bat file into Crossover when running it should enable you to run the file (using the Windows Command Prompt for example).

Try the Crossover Support Forums or Library http://www.codeweavers.com/support/ for help on how-to do this.

Stefan
thanks

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

opening .bat files on my mac

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.