On 27 Jan 2004 at 8:50, Peter Norton wrote:
Sorry, again me :-)
As I understand from the docs there are no EXEC command in the GNU Pascal. Instead PExecute exists. From the pexecutedemo.pas I understand how to call external program but I also need to pass parameters to. I have a mess in my head with all those TString,CString and PCStrings. Could someone drop a line-two of sample code how to call the program with passing parameters.
program runit; uses dos; begin Exec ('notepad.exe', 'c:\temp\foo.txt'); end.
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.bigfoot.com/~african_chief/