processes = System.EnumerateProcesses();
for j, file_path in processes do
file = String.SplitPath(file_path);
if (String.Lower(file.Filename..file.Extension)) == "Babylon.exe" then
System.TerminateProcess(j);
end
end
Professional Software Development Tools
processes = System.EnumerateProcesses();
for j, file_path in processes do
file = String.SplitPath(file_path);
if (String.Lower(file.Filename..file.Extension)) == "Babylon.exe" then
System.TerminateProcess(j);
end
end
processes = System.EnumerateProcesses();
for j, file_path in processes do
file = String.SplitPath(file_path);
if (String.Lower(file.Filename..file.Extension)) == "babylon.exe" then
System.TerminateProcess(j);
end
end
if you use String.Lower() then your condition should have all lower case characters.
"With a rubber duck, one's never alone."
Douglas Adams, The Hitchhiker's Guide to the Galaxy