Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

cclloyd

macrumors 68000
Original poster
Oct 26, 2011
1,760
147
Alpha Centauri A
I need to add a couple lines to the HOSTS files on both Windows and OSX machines, and knew how to do that on Windows. But how would I go about creating the OSX equivalent of a .bat file to just double click, enter password, and have it add the lines to the hosts file, and backup the old one as hosts.original?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.