Sublime Forum

Execute .exe in build system

#1

Hi friends

I want create a new build system why compile a source file .

and i want it execute de .exe created

This is de build system:

{
“cmd”: [“hbmk2”, “$file_base_name”, “-comp=bcc”],
“selector”: “source.harbour”,
“working_dir”: “${file_path}”,
“shell”: true
}

works fine but then how can execute de .exe created ?

Thanks in advance.

Jose.

0 Likes

#2

Standard shells on all operating systems allow you to chain commands together, so you could potentially modify your command above to:

    "cmd":  ["hbmk2", "$file_base_name", "--comp=bcc", "&&", "${file_base_name}.exe"],

Here the && means "do this next command, but only if the command to the left suceeded, and then the second command runs the resulting executable. You might need to adjust that somewhat if the name of the executable created isn’t based on the name of the input file, etc.

0 Likes

#3

Thanks friend

Your are a Genius, I have seening your videos about terminus, are very interesting.

If I buy Sublime you will have a lot of guilt.

a hug

Jose.

0 Likes