Running batch files on Macbook

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
batchcc
Posts: 137
Joined: 17 Aug 2015 06:05
Contact:

Running batch files on Macbook

#1 Post by batchcc » 13 Dec 2016 14:25

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.

Squashman
Expert
Posts: 4150
Joined: 23 Dec 2011 13:59

Re: Running batch files on Macbook

#2 Post by Squashman » 13 Dec 2016 14:28

Install Boot Camp.
Install Windows
Boot into Windows instead of Mac OS.
Run your batch files.

Squashman
Expert
Posts: 4150
Joined: 23 Dec 2011 13:59

Re: Running batch files on Macbook

#3 Post by Squashman » 13 Dec 2016 14:33

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?

batchcc
Posts: 137
Joined: 17 Aug 2015 06:05
Contact:

Re: Running batch files on Macbook

#4 Post by batchcc » 13 Dec 2016 14:37

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.

batchcc
Posts: 137
Joined: 17 Aug 2015 06:05
Contact:

Re: Running batch files on Macbook

#5 Post by batchcc » 13 Dec 2016 14:39

Would dosbox work as well?

Squashman
Expert
Posts: 4150
Joined: 23 Dec 2011 13:59

Re: Running batch files on Macbook

#6 Post by Squashman » 13 Dec 2016 14:42

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.

Squashman
Expert
Posts: 4150
Joined: 23 Dec 2011 13:59

Re: Running batch files on Macbook

#7 Post by Squashman » 13 Dec 2016 14:47

Certainly not going to hurt you to learn BASH.

batchcc
Posts: 137
Joined: 17 Aug 2015 06:05
Contact:

Re: Running batch files on Macbook

#8 Post by batchcc » 13 Dec 2016 17:02

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

ShadowThief
Expert
Posts: 950
Joined: 06 Sep 2013 21:28
Location: Virginia, United States

Re: Running batch files on Macbook

#9 Post by ShadowThief » 13 Dec 2016 22:07

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.

Post Reply