This does not work?
i
i
- nstances_of_file = 0;
- file_to_check_for = "autorun.exe"; --have all lowercase
- 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