I want a command to close a particular executable in the task manager.
Announcement
Collapse
No announcement yet.
How to end process in task manager by autoplay media studio?
Collapse
X
-
Lmfao "does not work". It does in fact work, that's the function you need to actually kill a process.
You need another function that searches for the PID of a process, but we're not here to do your job.
Saying "does not work" without showing how you implemented your code, or without showing your
attempts at all, is silly.
What the heck has happened to these forums...
I want a code so that when I click the button it closes a specific executable
lazkopat gave you another example, now you show us what you have done.
Comment
-
-
Originally posted by JUNINHO View PostI don't want a template, I want code that makes a certain process close when I press the button
Show us the code you've written to try to solve this yourself and we can help fixing problems.
-
👍 1
Comment
-
-
PHP Code:instances_of_file = 0;
file_to_check_for = "yourprogram.exe";
processes = System.EnumerateProcesses();
for j, file_path in pairs (processes) do
file = String.SplitPath(file_path);
if (String.Lower(file.Filename..file.Extension)) == file_to_check_for then
System.TerminateProcess(j);
end
end
Comment
-
-
Thanks for helping me!
I did a test with CCleaner64 but it didn't work.
instances_of_file = 0;
file_to_check_for = "CCleaner64.exe";
processes = System.EnumerateProcesses();
for j, file_path in pairs (processes) do
file = String.SplitPath(file_path);
if (String.Lower(file.Filename..file.Extension)) == file_to_check_for then
System.TerminateProcess(j);
end
end
Comment
-
-
if you understood what i am talking about i would recommend you an old sside dll ......
and this script:
PHP Code:terminate = System.TerminateProcess (XXXXXXXX);
EXAMPLE
Untitled.rar
Comment
-
-
Comment