Imported from the Apple Support Forums via the Wayback Machine 🔗
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.
Imported from the Apple Support Forums via the Wayback Machine 🔗
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
0
attekiller·
Imported from the Apple Support Forums via the Wayback Machine 🔗
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
0
Fortuny·
Imported from the Apple Support Forums via the Wayback Machine 🔗
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).
Imported from the Apple Support Forums via the Wayback Machine 🔗
Unfortunately, I do not think that I can run any Windows commands with this application. I had to remove most of the folders and installers from the bottle and edit the plists to get the software to run. Therefore, even if I installed the batch file directly into the same bottle, it would not affect the program that is actually working.