Question:
I wnat to make application that shutdown windows after task complete.
Any idea how?

Answer:
You can use ShutdownWindows method like here.



uses ComObj;


procedure TForm1.Button1Click(Sender: TObject);
var
shell: Variant;
begin
shell := CreateOleObject('Shell.Application');
shell.ShutdownWindows;
end;


4 Responses so far.

Post a Comment

Thank you for your comment.

Any request and idea are welcome.

CLICK TO REGISTER