Hi,
Two Questions:
A) Can we use sqlite in simba and how ? (extension??)
B) Is there an simba plugin to run cmd commands or exe files ?
Thanks in advance D
Hi,
Two Questions:
A) Can we use sqlite in simba and how ? (extension??)
B) Is there an simba plugin to run cmd commands or exe files ?
Thanks in advance D
Simba Code:openwebpage('path/to/batch/file');
That works, or, i forget the method, but there is a type that is a console that allows you to send commands and receive the output from them.
Simba Code:function ExecuteCommand(cmd:String; storeOutput:Boolean=False): string;
var
rc, f:Int32;
b:Char;
name,stream:string;
proc:TProcess;
begin
proc.Init(nil);
proc.SetCommandLine(cmd);
proc.SetOptions([poUsePipes, poStderrToOutPut]);
proc.Execute();
stream := '';
rc = 1;
repeat
repeat
rc := proc.GetOutput().Read(b,1);
stream += b;
until (b = #10) or (rc = 0);
if (stream <> '') then
begin
WriteLn(Replace(stream, #13#10,'',[]));
if storeOutput then Result += stream;
stream := '';
end;
until (rc = 0) and not(proc.GetRunning());
proc.Free();
end;
begin
ExecuteCommand('ping google.com -n 5');
end.
as for sqllite support there are currently no plugins for it, you can write wrappers yourself for the dll if you use Simba 1.2+
!No priv. messages please
There are currently 1 users browsing this thread. (0 members and 1 guests)