Kill Exe identified from path [SOLVED] lazarus / 34-Windows ---------------------------------------------------------------------- LA.Center · 2012-06-03 07:07 Hi, can anyone help me with killing a running exe identified by its path and as a second killing all running exe's identified by its name. I found some code for Delphi, to get started but could not make it work. http://www.swissdelphicenter.ch/torry/showcode.php?id=266 any help is highly appreciated thx. ---------------------------------------------------------------------- ludob · 2012-06-03 08:12 What is not working? If you are looking for tlhelp32, fpc includes JwaTlHelp32 which is the jedi port of tlhelp32. Adding windows,JwaTlHelp32 to the uses clause and KillTask works fine. TProcessEntry32.szExeFile is not the full path of the exe but only the filename. If you need the full path you need to use also Module32First and TModuleEntry32.szExePath A C example can be found at the bottom of http://msdn.microsoft.com/en- us/library/windows/desktop/ms684225(v=vs.85).aspx ---------------------------------------------------------------------- LA.Center · 2012-06-03 08:43 @ludob thx, indeed JwaTlHelp32 was the answer I have it now working.