Through the current version of extension you can compile any small basic file using the following code :
In the next update of extension It will provide the output of process also so we can get the output of the sb file if it has error or not.
and also If possible I will add function for running a powershell script and retuning its output.
Any suggestions ???
Code:
compiler = "C:\Program Files\Microsoft\Small Basic\SmallBasicCompiler.exe"
sb = "put full path of sb File here"
ZSProcessInfo.FileName = compiler
ZSProcessInfo.WorkingDirectory = ZSPath.GetDirectoryName(sb)
ZSProcessInfo.Arguments = ZSPath.GetFileName(sb)
ZSProcessInfo.CreateNoWindow = "True"
ZSProcessInfo.UseShellExecute = "False"
ZSProcessInfo.RedirectStandardOutput = "True"
ZSProcessInfo.Start()
and also If possible I will add function for running a powershell script and retuning its output.
Any suggestions ???
ZS