Home Download Buy Blog Forum Support

Using the Build system for batch files

Using the Build system for batch files

Postby SteveCooperOrg on Wed Jan 27, 2010 9:42 am

Anyone got a .sublime-build file for batch scripts? What I'm looking for is a way to develop the batch files in sublime, run them by hitting F7, and capture their output in the output window.

Unlike most scripting scenarios, batch files don't need an interpreter; this means there's no natural candidate for the first line of the file;

Code: Select all
lineNumberRegex ^(...*?):([0-9]*):?([0-9]*)
showWhenFinished true
workingDir $ProjectDir

Anyone know how I can get this working?
Maybe what you're looking for is at the http://www.sublimetextwiki.com
Posts: 193
Joined: Thu Mar 20, 2008 9:53 am

Re: Using the Build system for batch files

Postby jps on Wed Jan 27, 2010 10:47 am

You can pass the .bat file to cmd.exe to have it run it, so the value you're looking for should be something along the lines of cmd /c "$File"
Site Admin
Posts: 3217
Joined: Wed Mar 19, 2008 12:33 pm

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 19 guests