Topic: exe file run
hello dears. how to Run Another Exe file in mvd using click button...
My Visual Database → General → exe file run
hello dears. how to Run Another Exe file in mvd using click button...
Hi There,
In a script, you could use something like this:
procedure Form1_Button1_OnClick (Sender: TObject; var Cancel: boolean);
begin
openfile('C:\Documents and Settings\user\Desktop\blackpearl\red\red.exe'); //*** calls another MVD program (called red.exe)
end;
procedure Form1_Button2_OnClick (Sender: TObject; var Cancel: boolean);
begin
openfile('notepad.exe'); //*** calls notepad.exe (no file specified)
end;
procedure Form1_Button3_OnClick (Sender: TObject; var Cancel: boolean);
begin
openurl('www.myvisualdatabase.com'); //*** calls the specified website using your default browser
end;
begin
end.
Regards,
Derek.
thanks... derek
very usefull
any script to close exe file??/
and how to start and stop service using script???
any script to close exe file??/
Please download latest beta version
https://www.dropbox.com/s/wutj7mnux7f3a … a.zip?dl=0
I have added new function PostMessage, example how to close another app
procedure Form1_Button6_OnClick (Sender: TObject; var Cancel: boolean);
var
h: Integer;
begin
h:= FindWindow(nil, 'Calculator');// find window by caption
PostMessage(h, WM_QUIT, 0, 0);
end;
But not all applications allows to close self in this way.
and how to start and stop service using script???
OpenFile('start servicename', 'net');
OpenFile('stop servicename', 'net');
But you must run your project like "Run as administrator"
procedure Form1_Button6_OnClick (Sender: TObject; var Cancel: boolean);
var
h: Integer;
begin
h:= FindWindow(nil, 'Calculator');// find window by caption
PostMessage(h, WM_QUIT, 0, 0);
end;
Not working
another script like TASKKILL.
Please download latest beta version:
https://www.dropbox.com/s/wutj7mnux7f3a … a.zip?dl=0
I have added new function to kill task, example:
KillTask('notepad.exe');
thanks sir. I think its usefull for All.
are you palning sql server feature in future????
Unfortunately no.
My Visual Database → General → exe file run
Powered by PunBB, supported by Informer Technologies, Inc.
Theme Hydrogen by Kushi