Exec ('notepad.exe', 'c:\temp\foo.txt');
Thanks Professor.
Actually I tried to replace Exec with PExecute. I'm adapting my old Pascal programs ( they're ok with FPC, VP ) to the GNU Pascal standards and found that Exec doesn't fires the program while your simple code works fine.
Peter
__________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/