Friday, 9 August 2013

Sublime text 2 build system

Sublime text 2 build system

I want to build a file using Sublime Text 2, and then do a simple copy. I
managed to do the first thing using a build system, and I think it has to
be possible to do the copy with the build system also (because I can do it
in a batch file).
The batch script what does what I want to do is:
copy /b hang.bin+sectors.bin image.img
And the build system that I use is:
{
"cmd": ["copy", "/b", "hang.bin+sectors.bin", "image.img"],
"working_dir": "$file_path"
}
The error message that I get:
[Error 2] The system can't find the specified file [cmd: [u'copy', u'/b',
u'hang.bin+sectors.bin', u'image.img']] [dir: C:\Documents and
Settings\xxx\Desktop\Project] [path:
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\Common Files\Ulead Systems\MPEG] [Finished]
(Yeah, I hardcoded the hang.bin file to see if that would work, but no.
Normally I would use ${file_name}.bin there) I suspect the + syntax of the
two files that are to be copied (to one new file) is the problem, but I'm
not sure. Can anybody help me?

No comments:

Post a Comment