bert
03-15-2005, 09:33 AM
Hallo,
i want to close a running process called rslogon.exe
it worked in the background
i use the example from "Window.EnumerateProcesses"
but the running program could not be found.
i hope somebody can help
thanks bert
instances_of_file = 0;
file_to_check_for = "rslogon.exe"; --have all lowercase
processes = Window.EnumerateProcesses();
for j, file_path in processes do
file = String.SplitPath(file_path);
if (String.Lower(file.Filename..file.Extension)) == file_to_check_for then
instances_of_file = instances_of_file + 1;
end
end
if instances_of_file > 0 then
Window.Hide(Application.GetWndHandle());
Dialog.Message("Error", "Setup already running: code: already running");
Window.Close(Application.GetWndHandle(), CLOSEWND_TERMINATE);
else
Window.Show(Application.GetWndHandle());
end
i want to close a running process called rslogon.exe
it worked in the background
i use the example from "Window.EnumerateProcesses"
but the running program could not be found.
i hope somebody can help
thanks bert
instances_of_file = 0;
file_to_check_for = "rslogon.exe"; --have all lowercase
processes = Window.EnumerateProcesses();
for j, file_path in processes do
file = String.SplitPath(file_path);
if (String.Lower(file.Filename..file.Extension)) == file_to_check_for then
instances_of_file = instances_of_file + 1;
end
end
if instances_of_file > 0 then
Window.Hide(Application.GetWndHandle());
Dialog.Message("Error", "Setup already running: code: already running");
Window.Close(Application.GetWndHandle(), CLOSEWND_TERMINATE);
else
Window.Show(Application.GetWndHandle());
end