uses ShellAPI;
...
if ShellExecute(Form1.Handle, nil,
'c:windowsgeneral.txt', nil, nil, SW_SHOW) <;= 32 then
Application.MessageBox('Couldn''t execute the application',
'Error', MB_ICONEXCLAMATION);
ShellExecute(Form1.Handle, nil, 'c:windowsnotepad.exe',
'c:windowsgeneral.txt', nil, SW_SHOWMAXIMIZED);
ShellExecute(Form1.Handle, 'open', 'c:windowsnotepad.exe',
'general.txt', 'c:windows', SW_SHOWNORMAL);
ShellExecute(Form1.Handle, nil, PChar(fname + '.txt'),
nil, nil, SW_MAXIMIZE);
ShellExecute(Form1.Handle, nil, 'c:windowsnotepad.exe',
nil, nil, SW_SHOWNORMAL);