Closed Thread
Results 1 to 2 of 2

Thread: Batch on a Mac

  1. #1
    MarioMaster is offline x10 Sophmore MarioMaster is an unknown quantity at this point
    Join Date
    Feb 2008
    Posts
    181

    Batch on a Mac

    How do you run a batch (.bat) file on a Mac? I know you have to do something in Terminal, but what:dunno:?

  2. #2
    HomerJ is offline x10 Sophmore HomerJ is an unknown quantity at this point
    Join Date
    Jan 2008
    Location
    Ontario
    Posts
    181

    Re: Batch on a Mac

    I doubt you can. If it even has an interpreter for DOS/Windows batch files, they probably depend on DOS/Windows only programs and commands that Mac wouldn't have.

    Mac is Unix-like, so it probably uses has a bourne-compatible shell. Did the script you are trying to run come with another file with the extension .sh? If so, try that one, it should work.

    You would run it by opening whatever terminal emulator you use and navigating to the directory where the script is and then executing it. You may have to chmod it to make it executable. Here is what you should type:
    Code:
    cd /path/to/script
    chmod +x ./script.sh
    ./script.sh
    Replace the path and the name of the script with the actual names.

Closed Thread

Similar Threads

  1. Windows Sortcuts
    By Blazer9131 in forum Computers & Technology
    Replies: 3
    Last Post: 11-29-2007, 04:07 PM
  2. HyDr@ Sig Batch!
    By HyDr@ in forum Graphics & Webdesign
    Replies: 10
    Last Post: 01-26-2007, 03:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers