Sublime Text 2 build via simple batch file

build, sublimetext2

Solution

I just made a new build like this:

{
    "cmd": ["$file"],
    "selector": "source.dosbatch"
}

Then you would put your `ifort ...` string in a .bat file and "build" that.

Problem

I've been playing a bit with ST2 and it seems like a pretty cute editor. Unfortunatelly, its documentation is horrible. And I'm being nice. So here's my question. I have five files in a directory, which I usually build via a .bat file with ``` ifort file1.f90 file2.f90 file3.f90 ... ``` how can I define and execute this line on windows cmd (taking account the enviromental variables like PATH) from ST2 via a shortcut and see the output? Is something like that even possible at this stage with ST2?

Original source