Page 1 of 1

Running batch files on Macbook

Posted: 13 Dec 2016 14:25
by batchcc
Over the past few years I've accumulated a decent amount of batch files however as of this week my place of business is getting rid of all their windows laptops and replacing them with Macbooks. Are there any programs I can use that will allow me to run batch files on the computers. I would also prefer to run the program from my flash drive if possible. Thank you everyone.

Re: Running batch files on Macbook

Posted: 13 Dec 2016 14:28
by Squashman
Install Boot Camp.
Install Windows
Boot into Windows instead of Mac OS.
Run your batch files.

Re: Running batch files on Macbook

Posted: 13 Dec 2016 14:33
by Squashman
Looks like it is possible with wine.
http://superuser.com/questions/543159/h ... mmand-line

But what are you going to do when your batch file has an external cmd that it runs that is not provided by CMD.EXE?

Re: Running batch files on Macbook

Posted: 13 Dec 2016 14:37
by batchcc
Squashman wrote:Looks like it is possible with wine.
But what are you going to do when your batch file has an external cmd that it runs that is not provided by CMD.EXE?

I'm not sure Ill continue looking for multiple solutions but Thank you Squashman this is very helpful. Any suggestions are apreciated.

Re: Running batch files on Macbook

Posted: 13 Dec 2016 14:39
by batchcc
Would dosbox work as well?

Re: Running batch files on Macbook

Posted: 13 Dec 2016 14:42
by Squashman
batchcc wrote:Would dosbox work as well?

Try it.
While there is an emulator for OS X. I doubt it is going to run all commands.

Re: Running batch files on Macbook

Posted: 13 Dec 2016 14:47
by Squashman
Certainly not going to hurt you to learn BASH.

Re: Running batch files on Macbook

Posted: 13 Dec 2016 17:02
by batchcc
Squashman wrote:Certainly not going to hurt you to learn BASH.

I would prefer not to have to convert the many scripts I've collected and coded but if you could tell me about good online resources to learn it I would appreciate it :D

Re: Running batch files on Macbook

Posted: 13 Dec 2016 22:07
by ShadowThief
Squashman wrote:Certainly not going to hurt you to learn BASH.

Is the Mac version of bash even modern bash? I remember once struggling to change the extensions of a group of files on a Mac because the normal mv *.old *.new way didn't work; I had to use some ridiculous for loop.