Long time not kodil on Delphi. Trying to run the file to view:
ShellExecute(Handle, 'open', 'notepad', PChar('%systemroot%\system32\drivers\etc\hosts'), Pchar('%WinDir%'), SW_SHOW);
It seems to do everything right. But only the notebook opens (new file) and that's it. Hint what's wrong here.